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
akwang
Helper II
Helper 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
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.