Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
Need help in solving below query in Powerbi/Power Pivot.
In Powerpivot I created a Pivottable similar to below, where I created a measure COGP which is sum of RM, PM & Production cost. Now what I need to do is calculate % of COGP for each category and allocate Supply Chain OH accordingly. I have given the Supply Chain OH value at total level. One option I found is to calculate total of each this column (RM, PM, Prod) using All function with calculate and then calculate the contribution. Which is not a good option for me as my model contains more than 10 of this columns.
Is it possible to calculate the % contribution of a measure itself which I can use to multiply a certain value?
Category | Sales | COGP | RM Cost | PM Cost | Production Cost | Supply Chain OH |
A | 1000 | 385 | 222 | 123 | 40 | |
B | 2000 | 786 | 123 | 623 | 40 | |
C | 2000 | 1137 | 463 | 634 | 40 | |
D | 2000 | 706 | 444 | 222 | 40 | |
Total | 500 |
Solved! Go to Solution.
Hi @rajibmahmud
Try this Measure
%age of COGP= [COGP] / CALCULATE ( [COGP], ALL ( Table1 ) )
Hi @rajibmahmud
Try this Measure
%age of COGP= [COGP] / CALCULATE ( [COGP], ALL ( Table1 ) )
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |