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.
How would you write a formula for a new column that only populates the value from the "YTD-2020M06-Installation Jobs" column if the value in the "Booked vs Actual" column is "Total Booking" AND the value in the "Sell Price/Earned Revenue & Gross Margin/Gross Profit" column is "Gross Margin/Gross Profit"?
In M - edit Query
if [Booked vs Actual] = "Total Booking" and [Sell Price/Earned Revenue & Gross Margin/Gross Profit] = "Gross Margin/Gross Profit" then [YTD-2020M06-Installation Jobs]
if [Booked vs Actual] = "Total Booking" && [Sell Price/Earned Revenue & Gross Margin/Gross Profit] = "Gross Margin/Gross Profit" then [YTD-2020M06-Installation Jobs]
In Dax, new Column
if ([Booked vs Actual] = "Total Booking" && [Sell Price/Earned Revenue & Gross Margin/Gross Profit] = "Gross Margin/Gross Profit" , [YTD-2020M06-Installation Jobs] , blank() )
Hello @CierrahW
Use the following DAX as calculated column:
Output =
IF(
[Booked vs Actutal] = "Total Booking"
&& [Sell Price/Earned Revenue & Gross Margin/Gorss Profit] = "Gross Margin/Gross Profit",
[YTD-2020M06-Installation Jobs]
)
Cheers!
Vivek
If it helps, please mark it as a solution. Kudos would be a cherry on the top 🙂
If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)
Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter
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 |
---|---|
47 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
50 | |
47 | |
16 | |
13 |