Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
MarioCenteno
Creator III
Creator III

Get the last sale of the year in set analysis

Hello community I have the following challenge I want to get the last sale of the year in set analysis, I have an expression that adds the sales to the YTD but it is not the data I need, I want to obtain the utmost record of the accumulated sales.


Value currently displayed  $35771,846



The correct value is $10719408.

Expression

SUM({<[F_IFR.autoCalendar.Year]={'$(vMaxYear)'},F_IFR={'<=$(vMaxDate)'},

[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.YearMonth]=>}REAL_ACUM)

QLIK.png

1 Solution

Accepted Solutions
MarioCenteno
Creator III
Creator III
Author

I could solve it with the following expression:

SUM({<REAL_ACUM={$(=(max(REAL_ACUM)))},[F_IFR.autoCalendar.Year]={'$(vMaxYear)'},F_IFR={'<=$(vMaxDate)'},

[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.YearMonth]=>}REAL_ACUM)

View solution in original post

1 Reply
MarioCenteno
Creator III
Creator III
Author

I could solve it with the following expression:

SUM({<REAL_ACUM={$(=(max(REAL_ACUM)))},[F_IFR.autoCalendar.Year]={'$(vMaxYear)'},F_IFR={'<=$(vMaxDate)'},

[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.Date]=,[F_IFR.autoCalendar.YearMonth]=>}REAL_ACUM)