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 All:
I need your help to figure out a DAX formula. I have a table in the left with columns - Project Name, Level 2 & Value. Now need to define a DAX measure to find the value of Gross Profit Margin. The rule is: for each group (Project Name), Gross Profit Margin = (Gross Profit value / Revenue value)
Thank you in advance.
Regards,
rasel
Solved! Go to Solution.
Hi @srasel,
Why not pivot the Level 2 column in Query Editor shown in the following screenshot and then create a new column using the following formula?
NewColumn = Table1[Gross Profit]/Table1[Revenue]
You can check the values of new column in the figure below, for more details, you can review the example in the attached PBIX file.
Thanks,
Lydia Zhang
Hi @srasel,
Why not pivot the Level 2 column in Query Editor shown in the following screenshot and then create a new column using the following formula?
NewColumn = Table1[Gross Profit]/Table1[Revenue]
You can check the values of new column in the figure below, for more details, you can review the example in the attached PBIX file.
Thanks,
Lydia Zhang
Hello @Anonymous:
Thank you! Restructuring the data like that will work I guess. Let me try that on my input set. Hope that will work there too.
Thank you once again. Really appreciat that.
Regards,
rasel
User | Count |
---|---|
97 | |
73 | |
69 | |
43 | |
23 |