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.
I was trying to do this type of DAX in Power Query but no luck.
Not sure if there is a way to achieve this in M. Please help.
Solved! Go to Solution.
In M, you could write this as a custom column similar to this:
if [Stat_RepairStart] = #datetime(1900,1,1,0,0,0) then null
else Duration.TotalMinutes([Stat_RepairStart] - [Stat_Diagnosis])
In M, you could write this as a custom column similar to this:
if [Stat_RepairStart] = #datetime(1900,1,1,0,0,0) then null
else Duration.TotalMinutes([Stat_RepairStart] - [Stat_Diagnosis])
Looks like after then the null is causing an error.
It's case-sensitive so you can't use If instead of if
Holy cow. Didn't see that clearly. My bad. Thanks for the help! It is working
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 |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |