Forum Discussion
Calculating Margin %
- 6 years ago
Hi Yuiitsu ,
One custmer may have multi margins%, so if we sum them, we may got a 38%+30%+30% for customer C, if you want to get the result (3+10+34)/(11+32+88)=35.8%, we can create a measure as the value fileld to meet your requirement:
Margin % Measure = DIVIDE ( SUM ( 'Table'[Profit] ), SUM ( 'Table'[Total Selling] ) )
Best regards,
You want to save a percentage as a decimal and then label it as percentage in modelling tab. 0,66 = 66%. The way you have it now is 66% = 6600% (66*100).
Im not sure whats going on in your visual, but i advice you to change this first and then take a look at the visual. If its still not working please post the setup of the visual, what fields are where on what aggregation etc.
Is this what you meant?
Thanks for your reply earlier!
- Anonymous6 years agoNot applicable
Yes, thankyou, in the value field you see count of margin, this should be set to dont summarize. Also, did you chance the data to 0,66 instead of 66%?
- Yuiitsu6 years agoHelper V
Thank you for your kind reply. Please take a look at my screenshot
should I change to 2 decimal place? If yes please guide me the steps.
Also for the margin, as you can see in the SS i set it to dont summarize.
The drop down doesnt have that option. Am I misunderstanding anything here?
Again thank you for your help!
- v-lid-msft6 years agoCommunity Support
Hi Yuiitsu ,
One custmer may have multi margins%, so if we sum them, we may got a 38%+30%+30% for customer C, if you want to get the result (3+10+34)/(11+32+88)=35.8%, we can create a measure as the value fileld to meet your requirement:
Margin % Measure = DIVIDE ( SUM ( 'Table'[Profit] ), SUM ( 'Table'[Total Selling] ) )
Best regards,