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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Chris123Terr
Frequent Visitor

How to fill empty cells with zeros in a measure?

I have two measurements. One measure counts people over the age of 50 who have won a medal, and the other counts people under the age of 50 who have won a medal.

Chris123Terr_0-1662581136869.png

 

My intention is to fill empty values ​​with zeroes. When I try:
"if (table[column] = blank(), 0, table[column])"

The table is enlarged

Chris123Terr_1-1662581329509.png

 


1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try:

medals > 50 =

VAR _Calc =  IF(ISBLANK(MAX(Table[Medal])), BLANK(),[Count medals > 50] + 0)

RETURN

IF(ISINSCOPE (Table[Medal]), _Calc, [Count medals > 50)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
sg919
Frequent Visitor

Post deleted as requested

PaulDBrown
Community Champion
Community Champion

@sg919 

If your request is unrelated to the original question in the thread, please start a new thread (and delete the above post). Thank you!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
PaulDBrown
Community Champion
Community Champion

Try:

medals > 50 =

VAR _Calc =  IF(ISBLANK(MAX(Table[Medal])), BLANK(),[Count medals > 50] + 0)

RETURN

IF(ISINSCOPE (Table[Medal]), _Calc, [Count medals > 50)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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