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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis Month Query

Hi,

I am trying to get a sum of the amount of lines sold for this current month using set analysis  with the following:

SUM({$<Month([Order Date]) = {month(today())}>} [Line Amount])

I am getting errors, any ideas?

Thanks in advance

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

Sum({<[Order Date] = {">=$(=Date(MonthStart(max([Order Date))))<=$(=Date(Max([Order Date])))"}>}[Line Amount])

shraddha_g
Partner - Master III
Partner - Master III

You can also create month field in Script as

Monthname([Order Date]) as Month

Use this in Set Analysis

Sum({<Month = {"$(=Maxstring(Month))"}>}[Line Amount])

Anonymous
Not applicable
Author

Thankyou for your help, worked perfectly