cancel
Showing results for
Did you mean:
Frequent Visitor

## AVERAGE FROM TWO VALUE

Hi guys,

 Machine Working time Time for maintaining Percentage of mantaining A 100 5 5.00% A 200 4 2.00% C 50 2 4.00% B 90 0 0.00% B 80 3 3.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:

 Machine Working time Time for maintaining Percentage of mantaining A 300 9 3.00% B 170 3 1.76% C 50 2 4.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
Regular 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:

let me know if this helps you!

Regards
Harsha Vardhan

4 REPLIES 4
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

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

Regular 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:

let me know if this helps you!

Regards
Harsha Vardhan

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.

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

Frequent Visitor

## Re: AVERAGE FROM TWO VALUE

Thanks man, it did work.