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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Month

Dear All,

IMG.png

Please find the image

In this i want to fetch only 2014 ,Feb Data as Current month

for that month i should took only FEB,

Please create a variable that shows only Feb

  =Sum({1<Month={"<=$(=Max(Month))"},Year={'2014'}>}PAY_AMT)

This expression Im getting Both the Months Data How can i Fetch only FEB

Please Help Some one

Thanks In Advance

Niru

Labels (1)
4 Replies
maxgro
MVP
MVP

=Sum({1<Month={FEB},Year={'2014'}>}PAY_AMT)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Change Month={"<=$(=Max(Month))"} into Month={"$(=Max(Month))"}. The <= means smaller or equal. You want an exact match so don't use the <= comparison operator.


talk is cheap, supply exceeds demand
swuehl
Champion III
Champion III

Just change the smaller equal to an equal comparison or

=Sum({1<Month={'$(=Max(Month))'},Year={'2014'}>} PAY_AMT)



NavinReddy
Creator II
Creator II
Author

No it will change month automatically

there i need to use variable only