Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis in TimeChart

I have a time chart to compare Bookings By product to the previous quarter. Problem is I only want to show 4 products. I would normally just change the expression using set analysis. But the way time charts create the graph they use this formula:

Sum(if (InQuarterToDate (Date, Today(), -4),BookedAmount))

The dimension I am using is called product. How can I make this graph only show the three products I am interested in?

I apparently can't change the formula so that {$<Product = {'Product1','Product2','Product3'}>} )

3 Replies
tresesco
MVP
MVP

Give a try: Normal 0 false false false EN-IN X-NONE X-NONE

Sum( If(Match(Product , 'Product1','Product2','Product3')<>0 AND if (InQuarterToDate (Date, Today(), -4)),BookedAmount))

Regards, tresesco

Not applicable
Author

Thanks, this worked after I took the extra if out.

if (InQuarterToDate (Date, Today(), -4))

Became just

InQuarterToDate (Date, Today(), -4)

tresesco
MVP
MVP

yes, that was a silly mistake. however, it solved your problem, that is more important.