Forum Discussion
Tricky - percentage Calculation
Hi Experts
How would you calculate the Percentage values Based on the Net Amount, I.e. I want the Percentage of Allocation in Month / Net Amount and the individual months 1- 6 divided by the Net Amount.
The current Matrix table in the sample pbix is current for the Values, but i want to replace the values with % based on Net Amount.
Sample File
https://www.dropbox.com/s/f6gpirjae9cf96a/TestData.pbix?dl=0
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.
5 Replies
- MFelixSuper User
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]))- AnonymousNot applicable
Hi MFelix - firstly apologies if i did not explain the question. But the image below is the end result i am looking for...
- MFelixSuper 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.