Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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!
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!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |