Forum Discussion
pierredelareux
Helper I
9 years agoCalculate Grouped Percentage
Hi, Please find bellow a screen-shot of my table. I would like to create a chart that gives me the reprensatation of the followings fields : % of (UR/Non_Exclus) by Territoire by month % of (...
v-haibl-msft
Microsoft Employee
9 years ago
You can create a measure with following formula.
Ps: I named the table tas Table15.
UR/Non_Exclus = CALCULATE ( DIVIDE ( SUM ( Table15[UR] ), SUM ( Table15[NON_EXCLUS] ) ) )
Best Regards,
Herbert
pierredelareux
Helper I
9 years agoOk
I'll try your solution v-haibl-msft.
Plese find the datas and expected result here --> https://we.tl/y3BpsmmEcC
Thanks
Pierre
- pierredelareux9 years ago
Helper I
Hi v-haibl-msft,
It's not perfect because your formula calculate the Nen-Exclus sum for each month.
in my data Non-Exclus are defin once for all.
Thanks for your feedback.
Pierre
- v-haibl-msft9 years ago
Microsoft Employee
Maybe you’d like to sum Non_Exclus just by Territoire or by Site? Here is the solution.
UR/Non_Exclus = DIVIDE ( SUM ( Table15[UR] ), CALCULATE ( SUM ( Table15[NON_EXCLUS] ), ALLEXCEPT ( Table15, Table15[Territoire], Table15[Site] ) ) )Best Regards,
Herbert