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
M-M-P
Helper III
Helper III

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:

Chart100.png

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?

 

Your help is highly appreciated.

8 REPLIES 8
v-eachen-msft
Community Support
Community Support

Hi @M-M-P ,

 

You can turn to Analytics tab to use Min line, Max line and Average line.2-1.PNG

 

2-2.PNG

 

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-eachen-msft 

Thanks for your input.

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

Try this

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

Refer this for more details

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

Hi @amitchandak 

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.

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


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

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

Hi @amitchandak 

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))

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.

Top Solution Authors