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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
TDERUSSO
Frequent Visitor

How to create a new percentage measure

How do you divide a calculated field by a measure in Power BI?

 

i.e. % Past Due = (Past Due Amount / Open Amount) * 100

1 ACCEPTED SOLUTION

I was able to get this to work with the function below.  Thanks for your help!

 

Past Due % = ('AR Dashboard'[Past Due Amount] / SUM('AR Dashboard'[Open Amount])) * 100

View solution in original post

6 REPLIES 6
v-huizhn-msft
Employee
Employee

Hi @TDERUSSO,

As @Sean posted, you will need a clustering function in your measure. Yon can use SUM, MAX, MIN,Average and so on. If the Past Due Amount value is unique, the results of SUM, MAX, MIN,Average are equal. Please add the function, you will get what you want.

Best Regards,
Angelia

I was able to get this to work with the function below.  Thanks for your help!

 

Past Due % = ('AR Dashboard'[Past Due Amount] / SUM('AR Dashboard'[Open Amount])) * 100

Hi @TDERUSSO

I am very gald to hear you find a solution, please mark it as answer, so other people will find solution easily.

If you have other issues, please let me know.

Best Regards,
Angelia

 

Sean
Community Champion
Community Champion

@TDERUSSO

 

Is this what you are trying to do?

 

% Past Due Measure =
DIVIDE ( SUM ( Table[Past Due Amount Column] ), [Open Amount Measure], 0 )

 

You can then format this as %

TDERUSSO
Frequent Visitor

Thanks for the quick response Sean.

 

Yes, this is what I'm trying to do, but the past due amount is a calculated field and the open amount is a measure.  When I try to put the formula in this way, the argument won't allow me to select past due amount.  It wants me to select something from the table.

Sean
Community Champion
Community Champion

You can't select a COLUMN because you are creating a MEASURE

 

so any COLUMN you want to reference needs to be aggregated somehow - did you wrap it in SUM ( TableName[Column Name] )

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors