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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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)