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

Need help with blanks calculation measure in matrix table

Hi all, I am using these measures below:

 

ams measure = var a = DISTINCTCOUNT(AM[Exec_name])
return IF(ISBLANK(a),0,a)
 
wins measure AM table = var a = COUNT(AM[WIGS_Wins_Achieved])
return
IF(ISBLANK(a),0,a)
 
percentage am table = var a = DIVIDE(AM[wins measure AM table],SUM(AM[WIGS_Target]),0) * 100
return
IF(ISBLANK(a),0,a)
 
 
 
It is not calculating blanks at all. Below i am attaching a picture for the reference that the measures are not working properly. Is there a workaround for these measures? I want to show blank as 0 in my matrix table. Thanks in Advance.
 
PRI123_0-1667485139123.png

 

5 REPLIES 5
Jayee
Responsive Resident
Responsive Resident

Hi @Anonymous ,

 

try this below measures adding 0 to your measure

ams measure = DISTINCTCOUNT(AM[Exec_name])+0

wins measure AM table = COUNT(AM[WIGS_Wins_Achieved])+0

percentage am table = DIVIDE(AM[wins measure AM table]+0,SUM(AM[WIGS_Target]),0) * 100

 

Anonymous
Not applicable

@Jayee Hi. tried them but still not working

Hi , @Anonymous 

For you question, can you share the .pbix file (without sensitive data) to us , so that we can help you better?

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

@v-yueyunzh-msft please tell me your mail id. I can share my sample file

Hi , @Anonymous 

You can upload your sample pbix file to the OneDrive, and then you can share the onrdrive link to us .

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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.

Top Solution Authors