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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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!