Forum Discussion
Getting the highest average per month
- 9 years ago
Hi rendalignacio,
I create the sample table you posted, name it as 'Test'.
First, create a summary table by clicking "New Table" under Modeling on Home page, type the following formula.Table = SUMMARIZE(Test,Test[month],Test[Registry],"Average",AVERAGE(Test[DFFFAM]))
You will get the table below.
Create a calculated column using the fomrula.highest DFFAM = CALCULATE(MAX('Table'[Average]),ALLEXCEPT('Table','Table'[month]))
Finally, create another new table to get expected table.Result = SELECTCOLUMNS(FILTER('Table','Table'[Average]='Table'[highest DFFAM]),"Month",'Table'[month],"Registry",'Table'[Registry],"Highest average",'Table'[highest DFFAM
You can create a table visual to display the result as follows.
Best Regards,
Angelia
Hi,
I am still not clear of what you want, but here is the DAX formula i wrote for computing Maximum DFFAM
= MAX([DFFFAM])
Here's the result i got
Hi,
Actually, thats only the max... what i would want is to have the highest average per registry per month..
- Ashish_Mathur9 years ago
Super User
Hi,
Replace the MAX with the AVERAGE function in the formula bar
- rendalignacio9 years ago
Helper I
Hi,
Doing so would only get the average for all registry.
The goal is to have an average per registry per month....
- Ashish_Mathur9 years ago
Super User
Hi,
If this is still not your expected result, then please share a screenshot of your expected result.
- rendalignacio9 years ago
Helper I
Hi,
So Basically, in the dashboard, i want to show this.
So in the table, this will have the summary of which registry per month have the highest average DFFAM.
- Ashish_Mathur9 years ago
Super User
With respect to the data that you have shared, please share how did you arrive at the numbers 0.6,0.7 and 0.8. Please share the actual numbers that you want to see in that column with respect to the data that you shared earlier.