Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate the sum including null values

suppose  I calculating the  sum of sales. in that sales have some null values means in that format(-) are their . so how to calculate the sum of sales in that example any one plz tell me...... urgent 

5 Replies
ashfaq_haseeb
Champion III
Champion III

Simply write

=sum(sales) as your expression.

regards

ASHFAQ

Not applicable
Author

For clarity sake you could also exclude dimensions with value Null (Suppress when value is null)

jagan
Luminary Alumni
Luminary Alumni

Hi,

Just use

=Sum(MeasureName)


It will work.


Regards,

Jagan.

er_mohit
Master II
Master II

Try this expression

sum(Sale)

Make sure in presentation tab you uncheck the suppress zero value  to see the null values

Not applicable
Author

Hi,

You can add this in your script

sum(sales)

Regards

Charitha