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

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

Highlight based on amount sum over previous dates

I'm trying to highlight a box in a pivot table if during the 12 months before an order the ordered_amount is 0. This is what I was trying:

=if(sum({<ready_date={">=$(=addmonths(ready_date,-12))<$ready_date"}>}ordered_amount)=0 and ordered_amount>0, 'Maroon')

Attached a picture to show it better, only two of the values would be highlighted in the picture. Thanks for the help.

Labels (2)
2 Replies
sidhiq91
Specialist II
Specialist II

@clifford  Could you please elaborate a bit  more on your request? I guess I am missing something here.

clifford
Contributor II
Contributor II
Author

The boxes in the pivot table contain the sum of orders for that month. I am trying to highlight a box if that box has >0 sum of order for that month AND the 12 months before have 0 orders.