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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total of Rows

I have the following straight table which gives me no of days each stage is taking for applications. In the expression for Total I am saying "Stage 1" + "Stage 2" + "Stage 3" + "Stage 4". It only works if there is no dash (- ) in the row i.e. Loan. How can I get total of the rows which include dash (- ) in it i.e. Overdraft and Masterplan rows? Or should I convert - into 0??? 

No of days
ProductStage 1Stage 2Stage 3Stage 4Total
Loan12328
Overdraft2-25-
Masterplan342--
66778
Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

The dash represent null() or missing data

And a number + a null = null : the null propagates

Use rangesum() instead: with that function, the null is not propagated

rangesum(A, B, C) = A+B+C  (all null values are treated as 0

Fabrice

View solution in original post

7 Replies
m_woolf
Master II
Master II

Try:

Sum(Stage1) + Sum(Stage2) + ...

Not applicable
Author

Thanks Michael. I tried Sum("Stage1") + Sum("Stage2")+.... but it did not work. Stage1, Stage 2, .... are expressions label

Not applicable
Author

Also sorry I have pivot table

Not applicable
Author

The dash represent null() or missing data

And a number + a null = null : the null propagates

Use rangesum() instead: with that function, the null is not propagated

rangesum(A, B, C) = A+B+C  (all null values are treated as 0

Fabrice

Not applicable
Author

Hi Aunez,

Really apprecited your help. Basically application can go in any stage and can skip any stage. So you are saying if application does not go in any stage then it will result in - . How can I skip this dash in pivot table. I could not understand whats you said that "And a number + a null = null : the null propagates"???

Anonymous
Not applicable
Author

try [Stage 1]+[Stage 2]+[Stage 3]+[Stage 4]

Not applicable
Author

In presentation tab, you have textboxes to handle the null display

In QV, if you want to sum several datas with the + sign, if one of these data (in one field, in one expression) is null, then the global result will be null => the null propagates

Fabrice