Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
noman212
Creator III
Creator III

I want to show 2013 bars along with 2014, rest of 2013 bar appear when 2014 months updated pls refer attachment.

1 Solution

Accepted Solutions
Anonymous
Not applicable

add these two in your mastercalendar

InYearToDate(TempDate,$(vToday),0)*-1 as CurYTDFlag

InYearToDate(TempDate,$(vToday),-1)*-1 as LastYTDFlag

and in the set analysis for the 2014 you can use the sum(field())*CurYTDFlag and for 2013 sum(field())*LastYTDFlag

This will show only till current month

Let me know if this doesn't work

View solution in original post

6 Replies
Anonymous
Not applicable

Hi Noman,

You can restrict the previous year values to reflect only till Current year month.

Then your chart will work in the way you want.

Regards

Jeba

noman212
Creator III
Creator III
Author

how to implement this , I am usnig 'calendermonthname' in dimension and sum(issuedbusiness) in expression

sudeepkm
Specialist III
Specialist III

you can create a Flag field by using function YearToDate()

the flag will automatically take care of the those months of previous years which are present in this year as per your data set.

Anonymous
Not applicable

add these two in your mastercalendar

InYearToDate(TempDate,$(vToday),0)*-1 as CurYTDFlag

InYearToDate(TempDate,$(vToday),-1)*-1 as LastYTDFlag

and in the set analysis for the 2014 you can use the sum(field())*CurYTDFlag and for 2013 sum(field())*LastYTDFlag

This will show only till current month

Let me know if this doesn't work

noman212
Creator III
Creator III
Author

Jebamalai Dass thanks its work fine.

Anonymous
Not applicable

Hi Noman,

Then you can update this question as answered so that others can also refer

Regards

Jeba