Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

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])
percentage am table = var a = DIVIDE(AM[wins measure AM table],SUM(AM[WIGS_Target]),0) * 100
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.


Responsive Resident
Responsive Resident

Hi @PRI-123 ,


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


@Jayee Hi. tried them but still not working

Hi , @PRI-123 

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

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

Hi , @PRI-123 

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

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors