Forum Discussion
Anonymous
6 years agoNot applicable
Max of a Calculated Measure
Hi, I have the following situation: I have two tables with information on assets. The two tables are linked via two tables: [Date Table] and a Table containing information on every asset [Asset I...
- Anonymous6 years ago
Update: I have changed the data structure slightly by creating one table that holds all information on turnover and uptime by Date and Asset and was then able to calculate the maximum of the average using this code:
Maximum of averages = CALCULATE(MAXX( KEEPFILTERS(VALUES(Table[Asset])), CALCULATE(AVERAGE(Table[Turnover])) ), ALLSELECTED('Asset information'), ALLSELECTED(Date Table)))
amitchandak
Super User
6 years agoAnonymous
refer if this can help
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
I think at the date level you need take max (maxx)of you formula
Or Over all total
Averagex(summarize(table,table[date],"_1",[Turnover per Uptime], "_2",maxx(all(Table),[Turnover per Uptime])),divide([_1],[_2]))
You add group bys as per need