cancel
Showing results for
Did you mean:
Helper II

## Find the MAX, MIN and AVG output values of a measure

Hi
I have a measure (Measure_A). When using Measure_A in the Value
field and a Timestamp in the Axis field, you get this graph:

I would like to find the MAX, MIN and AVG of the graphs values.
I have not been able to find anything useful and have not been able to make it work myself.
How do you do that?

8 REPLIES 8
Community Support

Hi @M-M-P ,

You can turn to Analytics tab to use Min line, Max line and Average line.

Best Regards,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

If this post helps, then please consider Accept it as the solution to help the other members find it.
Helper II

I should have been more clear that I need to use the numbers in other calculations.

Super User IV

Try this

`Max Sales = CALCULATE(max(Sales[Sales]),ALLSELECTED())`

Refer this for more details

https://docs.microsoft.com/en-us/dax/allselected-function-dax

Proud to be a Super User!

Helper II

Thanks

Just to be sure. Is this correctly understood?

`Max Sales = CALCULATE(max(Measure_A),ALLSELECTED())`

If so, it complains that MAX needs a colum.

Super User IV

Measure_A need to be table[column], is it variable in the formula.

Proud to be a Super User!

Helper II

A VAR function is used in Measure_A. So is that the problem?
Sorry but I'm pretty new to DAX and Power BI.
Super User IV

The formula you shared is complete or part of it. If it was part of it, please share complete formula

Proud to be a Super User!

Helper II

This is the measure.

```Efficiency =
VAR Input_1 = CALCULATE ( [Sum Value] , Data[Name] = "Input_1")
VAR Output_1 = CALCULATE ( [Sum Value], Data[Name] = "Output_1")
VAR Value_VG = CALCULATE ( [Sum Value] , Data[Name] = "Value_VG")
VAR Efficiency = ((Value_VG - Input_1) / (Output_1 - Input_1)) * 100
RETURN
IF(Efficiency< 0 , 0 , IF (Efficiency> 100 , 100 , Efficiency))```

Announcements

#### 2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.