Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

If the column has a blank value, the sum of the column must be blank


voorbeeld tabel.png
In the image above you see a number of values in the value 1 column. These values must first be added together per category.

This must be the answer.

CategoryMeasure 1 
140
2112
399
4 
588

 

For the next calculation we need to add the measure 1 together. But important is that if there is a value blank in the column like the table above, the answer of the sum must be blank. Whenever a blank value occurs in the measure 1 , the answer must be blank. If a slicer is used in a visualization and you filter on category 1 & 2, the answer must be 152.

I hope you can help me.



1 ACCEPTED SOLUTION
7 REPLIES 7
Ahmedx
Super User
Super User

Anonymous
Not applicable

Yes! And then it is not 0 at all, but blank

Ahmedx
Super User
Super User

what is wrong?
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RhwqS6KStSTrc-_3-?e=jr05rq
Screen Capture #826.png

Anonymous
Not applicable

Hi Ahmed,

 

Apologies for the confusion. Maybe I didn't explain the problem well. You give the total of the sum of the column above as answer 339, but the total of the sum of the column must be blank. Because there is a value in column 1 that is blank and that is category 4.

So the point is that whenever you add numbers together and there is a blank value, the result must always be blank. If the blank value does not appear in the sum then it is a number value.

Ahmedx
Super User
Super User

write the following measure:
measure=SUM('table'[Value.1])&""

Anonymous
Not applicable

This is not correct. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.