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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik007
Contributor II
Contributor II

Second Set Expression to add second filter

I have one big tables with order related fields 

in KPI i need to show sales by region 

I am showing sum of product sold by region

Master item  = sum({<region_name= { ‘Americas’}>} Dollar_value)

I  displaying this in graph where X axis is ( YEAR &'-'& Month) 

Y axis - Above master item , with 2 other master item 

now I need to add set expression where it shows all the months data except current month

i dont have full date but i do have columns(attributes) which gives me month and year separate


my month filed name is “Month” and year field is called “Year “

this is what i have tried but obviously it doesn’t work

sum({<

Month={MonthEnd('$(today()),-1')},

region_name= { ‘Americas’}

>} Dollar_value)

 

 

Labels (1)
10 Replies
BPiotrowski
Partner - Contributor III
Partner - Contributor III

Hi, @Qlik007 

Try this one for prev month, you can also add {1} if you want to ignore user selection.

sum({<Date={"<=$(=MonthEnd(AddMonths(today(),-1))"},region_name= { 'Americas'}>} Dollar_value)