To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello I am trying to get the % of a column when this column values are the average.
Basically want for my Avg of Days to be summed out (Total should be = 156.27) and then in the next column where I underlined the number for it to be 17.47 / 156.27 = 11.18%
Solved! Go to Solution.
Avg as % =
var summaryTable = ADDCOLUMNS( ALLSELECTED('Table'[Request PBI]), "@val", CALCULATE(AVERAGE('Table'[Days])))
var currentValue = CALCULATE(AVERAGE('Table'[Days]))
return DIVIDE( currentValue, SUMX(summaryTable, [@val])
Avg as % =
var summaryTable = ADDCOLUMNS( ALLSELECTED('Table'[Request PBI]), "@val", CALCULATE(AVERAGE('Table'[Days])))
var currentValue = CALCULATE(AVERAGE('Table'[Days]))
return DIVIDE( currentValue, SUMX(summaryTable, [@val])
Thank you so very much!
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |