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
Anonymous
Not applicable

AVERAGE FROM TWO VALUE

Hi guys,

 

Please help me with this table.

 

MachineWorking timeTime for maintainingPercentage of mantaining
A10055.00%
A20042.00%
C5024.00%
B9000.00%
B8033.75%

 

I would like to draw a line chart showing percent of maintaining of each machine A,B,C.

 

If I use the average of Value in column "Percentage of mantaining", the result should be: A: 3.5%, C:4%, B: 1.88%.

However, those are not true since the true values should be:

 

MachineWorking timeTime for maintainingPercentage of mantaining
A30093.00%
B17031.76%
C5024.00%

 

Is there any method for me to draw a line chart showing the true percentage of maintaining for each machine?

 

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Create a measure as below,

% Maintaining = SUM(Sheet1[Time for maintaining])/SUM(Sheet1[Working time])
and use this in Detail sheet /Line chart,
results:
%  Average.PNG
 
let me know if this helps you!
 
Regards
Harsha Vardhan

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi,

 

Create a measure as below,

% Maintaining = SUM(Sheet1[Time for maintaining])/SUM(Sheet1[Working time])
and use this in Detail sheet /Line chart,
results:
%  Average.PNG
 
let me know if this helps you!
 
Regards
Harsha Vardhan

 

Anonymous
Not applicable

Thanks man, it did work.

@Anonymous i think i misunderstood your queston, just drop your percentage column on value and change aggregation to Avg and it should work.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous you have to break the ties in machine number otherwise it is going to aggregate the values. To break ties, add index column using power query and concatenate it with machine number, it will make machine number a unique identifies, and then use new machine number on axis, only challenge is that you will see concatenated index number with mahine number of x-axis



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.