Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

123

ABC

3 Replies
MK_QSL
MVP
MVP

Front end or back end?

MK_QSL
MVP
MVP

IF(RowNo() = 1, SUM(TOTAL Sales), SUM(TOTAL Sales)  - RangeSum(Above(SUM(Sales),0,RowNo())))

Small Change..

IF(RowNo() = 1,

  SUM(TOTAL Sales),

  SUM(TOTAL Sales)  - RangeSum(Above(SUM(Sales),1,RowNo()))

)

MK_QSL
MVP
MVP

And if you want the same Value even after selection of Year or Month, use below expression

IF(RowNo() = 1,

  SUM({<Year, Month>}TOTAL Sales),

  SUM({<Year, Month>}TOTAL Sales)  - RangeSum(Above(SUM({<Year, Month>}Sales),1,RowNo()))

) * Avg(1)