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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gulshan_rohilla
Contributor
Contributor

Before function in QlikSense Pivot table

Hello everyone,

I want the below report in QlikSense

query.PNG

the upto total section is adding the current and before value in the column and I have achieved some part of it. I somehow managed to add the previous into current but the first value appears null and addition starts from second and also i am not able to convert the null values into zeroes. can anyone tell me how to do that. below is my attached screenshot

q1.PNG

q2.PNG

thanks in advance

3 Replies
gulshan_rohilla
Contributor
Contributor
Author

My expression is

IF($(eSalesPartyWiseYTD)>0,($(eSalesPartyWiseYTD)+BEFORE($(eSalesPartyWiseYTD))),

IF(ISNULL(BEFORE($(eSalesPartyWiseYTD))) OR BEFORE($(eSalesPartyWiseYTD))='-',$(eSalesPartyWiseYTD))

joe_nguyen
Partner - Contributor II
Partner - Contributor II

Look into Rangesum function. I believe it would ignore nulls and sum up the numbers.

gulshan_rohilla
Contributor
Contributor
Author

No it didn't work...