The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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!