Forum Discussion
Calculation
- 6 years agoHi AnonymousI took a look at your pbix and mistakenly thought you had calculated the average.
You need to create a calculated column to calculate the average:average_col = CALCULATE( AVERAGE('Scores by check (2)'[Value]), FILTER(ALLSELECTED('Scores by check (2)'), 'Scores by check (2)'[Attribute]=EARLIER('Scores by check (2)'[Attribute])))Then create a measure to calculate the minimum average:
Measure = MINX('Scores by check (2)','Scores by check (2)'[average_col])It works like this:Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
You could use "MINX" function to get the minimum value in measure. Please try the DAX like this:
Measure = MINX(table,[AVG_value])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi V-lianl-msft
I have run this calculation however it just gives me the average of '1.6', instead of the lowest average by check
- V-lianl-msft6 years ago
Community Support
Hi Anonymous,Measure is related to the current context, please note whether the data is filtered or use ALL function.Measure = MINX(ALL(table),[AVG_value])If the problem persists,could you please share sample data and DAX formula?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- Anonymous6 years agoNot applicable
Hi V-lianl-msft
I can't seem to find what I'm looking for.
Please see the sample attached: https://www.dropbox.com/s/euz78g6444lfmrl/Compliance%20Reflection%20-%20sample.pbix?dl=0
- V-lianl-msft6 years ago
Community Support
Hi AnonymousI took a look at your pbix and mistakenly thought you had calculated the average.
You need to create a calculated column to calculate the average:average_col = CALCULATE( AVERAGE('Scores by check (2)'[Value]), FILTER(ALLSELECTED('Scores by check (2)'), 'Scores by check (2)'[Attribute]=EARLIER('Scores by check (2)'[Attribute])))Then create a measure to calculate the minimum average:
Measure = MINX('Scores by check (2)','Scores by check (2)'[average_col])It works like this:Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.