Forum Discussion
Tricky - percentage Calculation
- 5 years ago
Hi Anonymous ,
Redo your measure to
Allocation Month = DIVIDE ( SUM ( SampleData[Net Amount] ), CALCULATE ( SUM ( SampleData[Net Amount] ), FILTER ( ALL ( SampleData[YearMonth], SampleData[New Month] ), SampleData[YearMonth] = SELECTEDVALUE ( SampleData[YearMonth] ) ) ) )Only question I have is regarding the allocation in Month do you also need to have it divided by the total?
In this case you need to redo the way your table is presented.
Hi Anonymous ,
You just need to make the following measure:
Percentage of Allocation in Month = DIVIDE(SUM(SampleData[Allocation in Month]) , SUM(SampleData[Net Amount]))
Hi MFelix - firstly apologies if i did not explain the question. But the image below is the end result i am looking for...
- MFelix5 years agoSuper User
Hi Anonymous ,
Redo your measure to
Allocation Month = DIVIDE ( SUM ( SampleData[Net Amount] ), CALCULATE ( SUM ( SampleData[Net Amount] ), FILTER ( ALL ( SampleData[YearMonth], SampleData[New Month] ), SampleData[YearMonth] = SELECTEDVALUE ( SampleData[YearMonth] ) ) ) )Only question I have is regarding the allocation in Month do you also need to have it divided by the total?
In this case you need to redo the way your table is presented.
- Anonymous5 years agoNot applicable
Hi MFelix....re;In this case you need to redo the way your table is presented. how?
- MFelix5 years agoSuper User
Do you want to divide the allocation total also?
If yes you need to change your measure and also add a new disconnected table so that every thing is presented correctly and not duplicate.