The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Good Day Team,
I am testing the water with power bi and DAX and I think I got stuck in a little problem while putting my formula, so will be great if you can give me your feedbacks.
Here is my problem, I did create a measure to calculate:
1- REVENUE PER MOVEMENT wich is a division and the calculation is based on a condition.
2- also COST PER MOVEMENT which is a divisionand the calculation is based on a condition.
The statement 1 and 2 avobe are being calculated with the following statement and it works.
VALUES(MainTable[Description]) = "1) MARGIN PER TEU", CALCULATE(SUM(MainTable[Amt]), MainTable[Description] = "3) TOTAL REVENUE PER TEU") - CALCULATE(SUM(MainTable[Amt]), MainTable[Description] = "4) COST PER TEU"),
Thanks
I'm not sure what's happening but my best guess is that this is an auto-exists issue that could be resolved by using a dimension table for [Description].
For better help, please share some example data and a comparison of what you're currently seeing versus what you expect to see. Sharing a link to a copy of an example pbix you've uploaded to a cloud service like DropBox/GoogleDrive/SharePoint would be ideal.