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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
JMalan
New Member

Calculating Percentage excluding blanks

I am very new to PowerBI. I am trying to calculate the percentage of times our customers give us a satisfaction rating of "Great".

 

I have created the following measure. It works, but it is returning blank results as zero, and I need them to not be counted. Can someone help me exclude blank results?

 

CSAT Percentage = DIVIDE(

CALCULATE ( COUNTROWS( HelpScout_Table ), HelpScout_Table[Ratings] = "Great" ) ,

CALCULATE ( COUNTROWS( HelpScout_Table ), ALL ( HelpScout_Table[Ratings] ) ))
 
Thank you in advance!
 
Jeremy
1 ACCEPTED SOLUTION
JMalan
New Member

I figured it out. For anyone else looking for this solution, here is what worked for me.

CSAT Percentage =
DIVIDE(
    CALCULATE ( COUNTROWS( HelpScout_Table ), HelpScout_Table[Ratings] = "Great" ) ,
    CALCULATE ( COUNTROWS( HelpScout_Table ), ALL ( HelpScout_Table[Ratings] ), HelpScout_Table[Ratings] <> BLANK() ))

View solution in original post

1 REPLY 1
JMalan
New Member

I figured it out. For anyone else looking for this solution, here is what worked for me.

CSAT Percentage =
DIVIDE(
    CALCULATE ( COUNTROWS( HelpScout_Table ), HelpScout_Table[Ratings] = "Great" ) ,
    CALCULATE ( COUNTROWS( HelpScout_Table ), ALL ( HelpScout_Table[Ratings] ), HelpScout_Table[Ratings] <> BLANK() ))

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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