Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME 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