Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ak00428233
Contributor III
Contributor III

How to add the value in a coloumn to the above value in the coloumn

Hi,

i have a problem in displaying values.Could anyone suggest the expression for it.

I have values like

MONTH YEAR JAN 2015     FEB 2015       MAR 2015      APR 2015

Toyota               1234            4567            6789                9012

BMW                 2345            6789            9012                3456

aUDI                  3456            7890            1234                5678

The result i want to get is like

result                   3456           (3456+7890)       (3456+7890+1234)   (3456+7890+1234+5678).

Could anyone suggest the expression to get the result in the above way.

pls help me if you know this

regards

K.Anuraj

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Check try like this

=Rangesum(Sum(Sales), Above(Sum(Sales), 0, RowNo())

OR

=Rangesum(Sum(Sales), Before(Sum(Sales), 0, ColumnNo())


Hope this helps you.


Regards,

Jagan.

View solution in original post

5 Replies
PrashantSangle

Hi,

try Full Accumulation option from straight table->Expression tab.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Luminary Alumni
Luminary Alumni

Hi,

Check try like this

=Rangesum(Sum(Sales), Above(Sum(Sales), 0, RowNo())

OR

=Rangesum(Sum(Sales), Before(Sum(Sales), 0, ColumnNo())


Hope this helps you.


Regards,

Jagan.

Digvijay_Singh

tweaked a bit the exp suggested by jagan.

=Rangesum(Before(Sum(Data), 0, ColumnNo()))

Capture.JPG

ak00428233
Contributor III
Contributor III
Author

Thank you Jagan I am getting the values by writing that expression

ak00428233
Contributor III
Contributor III
Author

Thank you Digvijay Singh