cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dhhanh Frequent Visitor
Frequent Visitor

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

Accepted Solutions
HarshaTU Frequent Visitor
Frequent Visitor

Re: AVERAGE FROM TWO VALUE

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

 

4 REPLIES 4
Super User
Super User

Re: AVERAGE FROM TWO VALUE

@dhhanh 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





Did I answer your question? Mark my post as a solution!


Proud to be a Datanaut! Connect with me on Linkedin.
Feel free to email me with any of your BI needs.




 




HarshaTU Frequent Visitor
Frequent Visitor

Re: AVERAGE FROM TWO VALUE

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

 

Super User
Super User

Re: AVERAGE FROM TWO VALUE

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





Did I answer your question? Mark my post as a solution!


Proud to be a Datanaut! Connect with me on Linkedin.
Feel free to email me with any of your BI needs.




 




dhhanh Frequent Visitor
Frequent Visitor

Re: AVERAGE FROM TWO VALUE

Thanks man, it did work.