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: 
Not applicable

Hi all ! while doing cummulative sum it is getting added all values, but skiping 0 value and adding the immediate nxt value. Plz suggest solution

Hi all ! while doing cummulative sum it is getting added all values, but skiping 0 value and adding the immediate nxt value. Plz suggest solution

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Can you explain what you expect? In a cumulative sum a value 0 does not change the cumulative value. That's not skipping the value, but simple adding 0.


talk is cheap, supply exceeds demand
Not applicable
Author

ya, it is not adding 0. it is adding just next value to it and showing in cumulative field.

Logic:

if( RowNo()>1,if((month([Date_LD]) =month(Previous([Date_LD]))),([Sales_LD] + Peek([Cum Sales])),[Sales_LD]),[Sales_LD]) As [Cum Sales];

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You mean the Suppress Zero Values option is enabled? Try disabling it on the Presentation tab.


talk is cheap, supply exceeds demand
Not applicable
Author

Plz chk it,

Legdersum.PNG