cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
M-M-P
Helper II
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:

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!


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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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
MBAS on Demand

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.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors