Forum Discussion
Anonymous
6 years agoNot applicable
Indices in DAX
Hi,
So I thought this would be simple but its not appearing to be so.
I just need to iterate through a column and take the value1 and compare that to the average for the whole table for that value * 100
Its quite a normal marketing practice so I hope its possible to find an answer 🙂
Please help if you can. 🙂
Here is a column expression to do that:
Avg Column = 'Table'[Value]/AVERAGE('Table'[Value])*100And here is a measure expression that does it (to be used in a table visual that has the Value column in it:Avg Measure = SELECTEDVALUE('Table'[Value])/CALCULATE(AVERAGE('Table'[Value]), All('Table'))*100If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
1 Reply
- mahoneypat
Microsoft Employee
Here is a column expression to do that:
Avg Column = 'Table'[Value]/AVERAGE('Table'[Value])*100And here is a measure expression that does it (to be used in a table visual that has the Value column in it:Avg Measure = SELECTEDVALUE('Table'[Value])/CALCULATE(AVERAGE('Table'[Value]), All('Table'))*100If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat