Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rolling 12 Month: a problem....

  Hi all,

I found the attached file in the community.

It is an example well done and very useful

In the sheet "Sheet2" if I select a value from Region do not change the values in the table.

How can I do for the selection also to the Region dimension?

Thank

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum({<Month=, MonthYear=, OrderDate={">=$(=addmonths(monthend(max(OrderDate))+1,-12)) <=$(=max(OrderDate))"}>}Sales)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The expressions start with sum({1<OrderDate={. The 1 means ignore all selections. Remove the 1 and the selection of a Region will be reflected in the calculation.


talk is cheap, supply exceeds demand
Not applicable
Author

OK Gysbert,

you're right.

But I would like to be able to keep the 12 months in the dimensions and also the ability to select a value for the Region

Thank

Sbuzi

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum({<Month=, MonthYear=, OrderDate={">=$(=addmonths(monthend(max(OrderDate))+1,-12)) <=$(=max(OrderDate))"}>}Sales)


talk is cheap, supply exceeds demand
Not applicable
Author

Why do you enclose two '' - is that nessecary?

Not applicable
Author

Thank you VERY MUCH