Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum only for the maximum of selected Months

Hello to all! I need help with the following: I am trying to make an expression in pivot table to display the total sales only for the maximum month over the selected months. More specifically, if the user selectes Jan, Feb, March , the expression will bring sum(sales) of March.Can anyone help?

3 Replies
Miguel_Angel_Baeyens

Hi and welcome!

Something like the following should work, assuming there is a field named "Month" and the values are numeric:

Sum({< Month = {$(=Max(Month))} >} Sales)

Hope that helps.

Miguel

NZFei
Partner - Specialist
Partner - Specialist

sum({<Month = {$(=Maxstring(Month))}>}Sales)

Not applicable
Author

Thank you all