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
BJGRUNDY
Frequent Visitor

% Not calculating blank as zero

I am trying to show on a matrix the percentage of jobs complete vs the number of jobs complete but the count of does not diplay 0. The count is 

_Count of PVA PASS = CALCULATE(COUNTROWS('dba Job'),'dba Job'[PVA]="Pass")
 
If I add +0 it then displays all the blanks a 0 and ignors the filters and even then the % does not calculate the 0
 
 
BJGRUNDY_0-1692630922592.png

 

 
1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @BJGRUNDY ,

Please try to use IF() function to determine if the value is blank, when blank show zero.

Please try below dax formula:

_Count of PVA PASS Adjust =
IF ( ISBLANK ( [_Count of PVA PASS] ), 0, [_Count of PVA PASS] )
_KPI% Adjust =
IF ( ISBLANK ( [_Count of PVA PASS] ), 0, [_KPI%] )

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-binbinyu-msft
Community Support
Community Support

Hi @BJGRUNDY ,

Please try to use IF() function to determine if the value is blank, when blank show zero.

Please try below dax formula:

_Count of PVA PASS Adjust =
IF ( ISBLANK ( [_Count of PVA PASS] ), 0, [_Count of PVA PASS] )
_KPI% Adjust =
IF ( ISBLANK ( [_Count of PVA PASS] ), 0, [_KPI%] )

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This give me the same result that the ,0 option does and then ignores the filters. 

 

BJGRUNDY_0-1692975555113.png

 

 

How can I get round this?

 

parry2k
Super User
Super User

@BJGRUNDY what is your ask, you want KPI % to show Zero?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

The count and KPI to show zero

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.