Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello masters,
i need your support to calculate the percentage of other cost to sales cost. In below, I have cost data and sales data in one table.
Could someone tell me what the problem is and how to show the percentage for each row?
Thanks!
Solved! Go to Solution.
Hello @Tonyy
Try this
Cost to Sales - % =
Divide(
[Total HFM Cost],
CALCULATE(
[Total HFM Cost], 'HFM data'[Cost type]="Production sales",ALL('HFM data'Cost type (groups))
), 0
)
Hope it solves and this is what were looking for.
Hello @Tonyy
Try this
Cost to Sales - % =
Divide(
[Total HFM Cost],
CALCULATE(
[Total HFM Cost], 'HFM data'[Cost type]="Production sales",ALL('HFM data'Cost type (groups))
), 0
)
Hope it solves and this is what were looking for.
Thanks so much!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!