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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mberkebile
New Member

Looking for a total percentage based on totals

I have a power BI table of Late vs. On-time Shipments.  I'd like to calculate the TOTAL OnTime finalPercent which would be the TOTAL OnTime Shipments/(TOTAL Late + OnTime Shipments).  It calculates fine by row, but it will not  do the TOTALS (i.e. 105/134). I can only Sum, Don't Sum(as shown below), Average, etc..  Is there a way to get what I want within this table where "NEED % HERE" is?  There are more complexities with dates and such, but this is the jist of what I'm looking for.  Thanks!

 

DateLate ShipmentsOnTime ShipmentsLate+OnTime ShipmentsFinal Percentage
6/3/201917314864.58%
6/4/20195333886.84%
6/5/20197414885.42%
TOTAL29105134NEED % HERE
1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @mberkebile 

You may create a measure like below.PS:Change 'Data' to your table name.

Percent = SUM(Data[OnTime Shipments])/(SUM(Data[Late Shipments])+SUM(Data[OnTime Shipments]))

1.png

Regards,

Community Support Team _ Cherie Chen
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

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @mberkebile 

You may create a measure like below.PS:Change 'Data' to your table name.

Percent = SUM(Data[OnTime Shipments])/(SUM(Data[Late Shipments])+SUM(Data[OnTime Shipments]))

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much!!  I swear I tried this combination, but I think my brain was foggy and I missed trying this measure!  🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.