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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis for data display?


i have a month list box

month:

[

jan

feb

mar

.

.

.

.

.

oct

nov

dec

];

i made a bar chart with dimension as month and expressions as sum(sales).

my req is i dont want see the sales for current month and previous month.

for example we are IN  SEP so i dont want see sales for month of  sep,aug(current month and previous month)

if we moved to OCT then i dont want see sales for month of OCT and SEP  ?

7 Replies
senpradip007
Specialist III
Specialist III

Try like:

Sum({<Month={"<$(=Max(Month)-1)"}>} sales)

Anonymous
Not applicable
Author

it will ignore last month only what about current month  pradip..

Anonymous
Not applicable
Author

you want to see up to current month

Sum({<Month={"<$(=Month(today()))"}sales)

if you want to see only current and previous month

sum({<Month={">=$(=month(today()-1)<=$(=month(today()))"}sales)

senpradip007
Specialist III
Specialist III

Did you try with that expression?

Anonymous
Not applicable
Author

no yar ,not yet

ok i will try tell u

Anonymous
Not applicable
Author

i want exclude current month and previous month ,rest of the month i want to see

Anonymous
Not applicable
Author

then

sum({<Month={"<$(=month(today()-1))">}sales)

should work