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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
akwang
Advocate II
Advocate II

Line Efficiency DAX formula

Hi I need help with a formula below:

 

This is what i want

 

 Total KG/h ActualTotal KG/h StandardProduction Efficiency %
Line 124025096%
Line 227330091%
Line 311612097%
Line 4425084%

 

How can i create a formula that would result in the Production Efficiency % column? When i Sum the Actual it remains according to line, but when i sum the standard i get 720 as all the standard rather than as it is on the table.

1 ACCEPTED SOLUTION

Hi SiviMani,

 

I fixed the problem by enabling relationships as both direction relationship.Screenshot_1.png

View solution in original post

8 REPLIES 8
SivaMani
Resident Rockstar
Resident Rockstar

Hi @akwang,

 

Create a calculated column with Divide function.

 

Production Efficiency % = DIVIDE(Table1[Total KG/h Actual],Table1[Total KG/h Standard],0)

 

 

Then Change the Format to Percentage which under modeling tab

 

regards,

Siva

 

 

Hi Ihave the data in two separate tables. One with the actual prod and the other with the Standard for Line 1,2,3.

 

How would i calculate that?

 @akwang,

 

Sorry, I thought you have the values in the same table

 

Create a relationship between the tables based on the Line.

 

Then create a calculated measure,

Production Efficiency % = DIVIDE(SUM(Table1[Total KG/h Actual]),SUM(Table2[Total KG/h Standard]),0)

Hi This is what i get on the table visual and my reference table is below:

 

TABLE VISUALTABLE VISUALREF TABLEREF TABLE

The STD is not sepatating by line causing incorrect %efficiency

What was the procedure you followed to get that output?  

the same formula you told me to use.

@akwang,

How did you calculate Line Prod and Total line Prod?

 

Where it comes from?

 

could please share some sample data? pbix file would be great

Hi SiviMani,

 

I fixed the problem by enabling relationships as both direction relationship.Screenshot_1.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors