Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rajibmahmud
Helper III
Helper III

Help with a measure

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?

 

CategorySalesCOGPRM CostPM CostProduction CostSupply Chain OH
A100038522212340 
B200078612362340 
C2000113746363440 
D200070644422240 
Total     500
1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @rajibmahmud

 

Try this Measure

 

%age of COGP=
[COGP] / CALCULATE ( [COGP], ALL ( Table1 ) )

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

Hi @rajibmahmud

 

Try this Measure

 

%age of COGP=
[COGP] / CALCULATE ( [COGP], ALL ( Table1 ) )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors