Forum Discussion
Anonymous
6 years agoNot applicable
Calculate ratio
Hi, I need to calculate the ratio of some fields. I have the following data, this is the structure of the data. ID Numbers Date Hour 1 2 05-13-2020 10:00 1 1 05-13-2020 11:00 ...
v-chuncz-msft
6 years agoCommunity Support
Anonymous
You may use the measure below.
Measure =
DIVIDE (
AVERAGEX ( VALUES ( Table1[ID] ), CALCULATE ( SUM ( Table1[Numbers] ) ) ),
CALCULATE ( SUM ( Table1[Numbers] ), ALLSELECTED ( Table1[ID] ) )
)
- Anonymous6 years agoNot applicable
Thank you both v-chuncz-msft and az38 . Both of the solutions works with a measure.
Is this formula also possible to use as an extra column instead of a measure?
- az386 years agoCommunity Champion
Anonymous
yes, it should be fine