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

Total Profit by Year

Hello,

I'm trying to get a figure out how to create the column 'Total Profit by Year' in QlikView.  Can someone please explain how it can be done?

Thank you!ProfitByYear.JPG

1 Solution

Accepted Solutions
morganaaron
Specialist
Specialist

RangeSum(Above(Sum(Profit), 0, Num(Month)))

Assuming your field is called Profit and your Month-Year has been created from a master calendar including Month and Year...alternatively use the Num(Month(MonthYear)) if not..

View solution in original post

3 Replies
Not applicable

Hi,

You can use this expression.

rangesum(above( sum( field name ), 12 ))

morganaaron
Specialist
Specialist

RangeSum(Above(Sum(Profit), 0, Num(Month)))

Assuming your field is called Profit and your Month-Year has been created from a master calendar including Month and Year...alternatively use the Num(Month(MonthYear)) if not..

mphekin12
Specialist
Specialist
Author

Aaron,

The solution you provided worked perfectly.  Thanks so much for your help!