Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper I
Helper I

How to return zeros as percentage in power bi

I am trying to work out a percentage. I need the below measure to return "n/a" if P1 Total is blank or (0) but to return 0.00% if the P1 Total has a value. How can I achieve.
Currently, it's just returning me 0.00% for everything with P1 Total > 1 >>> the calculation is just not working.
P1 Complete % =
IF(ISBLANK([P1 Total]), "n/a",
     IF([P1 Total] > 1, "0.00%",
          [Complete P1]/[P1 Total]


// If P1 Total is blank I want it to return "n/a"
// If P1 Total is greater than 1 I want it to return 0.00%

Any help would be much apprecaited.
Thanks in advance
Solution Sage
Solution Sage


Total Sales = SUM('Table A'[Sales])
Sale of % =
[Total Sales],
CALCULATE ( [Total Sales], ALLSELECTED ( 'Table A'[Product], 'Table A'[Year] ) )
Conditional % =
IF ( [Sale of %] = BLANK (), "N/A", 0 )




@ukare1996 Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Happy to help!!

Helper I
Helper I

I meant to say, it's currently just returning me n/a's for anything that has blank p1 total and for the ones greater than 1 

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

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!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors