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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply

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

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

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])&""

This is not correct. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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