Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
grajmca_sgp123
Creator
Creator

Current Selection sales value based on Month selection

 

hi,

In pivot table by default I would like to show current year sales value, and when ever user select the month I would like to show current year + month selected value.

I have implemented below logic but doesn't worked,can any one suggest.

Sum({<Year = {"$(=$(vCurrentYear))"},Month={'GetCurrentSelections(Month)'}>} [sales)])

Labels (1)
2 Replies
zhaofeng
Partner - Creator
Partner - Creator

Hi

I think you can try Sum({<Year = {"$(=$(vCurrentYear))"},Month={"=GetCurrentSelections(Month)"}>} [sales)])

MayilVahanan

Hi @grajmca_sgp123 

If the calendar is linked with ur data model, then no need to include Month field in set analysis. 
By default, expression works with month selection also. 

Sum({<Year = {"$(=$(vCurrentYear))"}>} [sales)])
<-- above expression, it display vCurrentYear Year values by default. If the user select, any month / week / day, it will reflect based on user selection in the Year (vCurrentYear).

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.