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 want to add another column in my table with true or false.
It's really simple I thought. This is what I had in power query editor:
= Table.AddColumn(Incidents_table, "SlaBehaald",
each if(
Incidents[completionDate] < Incidents[slaTargetDate],
true,
false
))
So if the completiondate is earlier then the slaTargetDate, then it should be true, otherwise false.
Instead is shows the token rightparen expected error.
Solved! Go to Solution.
Rewrite the "if" statement as follows:
if [completionDate] < [slaTargetDate] then true else false
Proud to be a Super User!
Your formula would work in DAX but power query uses M language. If you want to write an if statement then the syntax would be:
if [completionDate] < [slaTargetDate] then true else false
Make sure the "if" is all lowercase. Hope this helps 🙂
I don't think you need "Incidents" before the column names
Rewrite the "if" statement as follows:
if [completionDate] < [slaTargetDate] then true else false
Proud to be a Super User!
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 |
---|---|
105 | |
105 | |
88 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
81 | |
72 |