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: 
Anonymous
Not applicable

Using Max and Min functions in set analysis

Hi i need to pick max of Date_Actuals from Fact in order to calculate the total Amount  from "Amount".

This below expression is not giving any results :

=Sum({<Date_Actuals ={">=$(=min(Date_Actuals))<= $(=max(Date_Actuals))">}Amount)

Please let me know the correct syntax

Thanks in adavance

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

You are missing a closing }... try this:

=Sum({<Date_Actuals ={">=$(=min(Date_Actuals))<=$(=max(Date_Actuals))"}>}Amount)

dunnalahk123
Creator III
Creator III

Hi Sunny,

 

Same expression i am trying to use  as below

 

My point is Q118 should not come as i am taking month greater than 201802 which Q2FY18 , but for me Q118 is coming and data is coming as 0.

 

Any idea or suggestion please.

 

Sum({<Month ={">=201802 <=201904"}>}NumValue)

Q.PNG

 

Best Regards,

HK