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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KaitlynS4
Frequent Visitor

Percent of Column Total

I would like to find the percent of the TonsDeliveredLate by Carrier Delay from the Total TonsReported.

 

Example: 2,430 tons of Carrier Related Delays / 70,580 Total Tons ReportedCapture.PNG

 

I created the following 'New Measure', but it's only finding percentages by the row. (Carrier Related TonsDeliveredLate/Carrier Related TonsReported)  I need it to find a row percentage of a column total.

 

Percent = SUM(Shipments[TonsDeliveredLate])/SUM(Shipments[TonsReported])*100

2 ACCEPTED SOLUTIONS

Hi @KaitlynS4,

 

Did you filter the table visual? Then please use the formula to work on it.

 

Measure = CALCULATE(SUM(Table1[TonsDeliveredlate]))/CALCULATE(SUM(Table1[TonsReported]),ALLSELECTED(Table1))

If it doesn't meet your requirement either, kindly share your pbix to me.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi @KaitlynS4,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @KaitlynS4,

 

One sample for your reference. Here we need to create a measure to work on it.

 

Measure = CALCULATE(SUM(Table1[TonsDeliveredlate]))/CALCULATE(SUM(Table1[TonsReported]),ALL(Table1))

Capture.PNG

 

Also please find the pbix as attached.

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

My calculations still don't look right.  For Carrier Related, the Measure should be 2,591/71,434 = .0362 *100 = 3.63.  However, this calucation is coming up as 2.44

 

Capture 1.PNG

 

I just copied your measure for the calculations, so I'm not sure how it could be different?

 

Capture 3.PNG

 

 

Hi @KaitlynS4,

 

Did you filter the table visual? Then please use the formula to work on it.

 

Measure = CALCULATE(SUM(Table1[TonsDeliveredlate]))/CALCULATE(SUM(Table1[TonsReported]),ALLSELECTED(Table1))

If it doesn't meet your requirement either, kindly share your pbix to me.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @KaitlynS4,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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