Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 @v-yuezhe-msft:
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |