Forum Discussion
Anonymous
6 years agoNot applicable
Please correct me IF condition
Hello Members, Please let me know is my below IF condition is correct / wrong. I am finding Totalminute between Issue Detection Time & Incident Start which is generated by name XYZ if [Triggered...
- 6 years ago
Anonymous , Try soething like this
if [Triggered XYZ] = 1 then if [#" Detection Time (UTC)"] < [#"Incident Start (UTC)"] then Duration.TotalMinutes([#"Detection Time (UTC)"] - [#"Incident Start (UTC)"]) else Duration.TotalMinutes([#"Incident Start (UTC)"] - [#"Detection Time (UTC)"]) else "null"
AllisonKennedy
Community Champion
6 years agoThis looks like something you might want to post in the Power Query forum: https://community.powerbi.com/t5/Power-Query/bd-p/power-bi-services
What are you trying to find? Please explain your criteria a bit more in 'plain english' so we can help troubleshoot your IF statement, and also please describe your problem. You probably need a 'for each' that seems to be missing.
Did you try starting with the simple Add Column tab in the ribbon and click the "Conditional Column" button? This will give you the bones/structure to start your formula.
What are you trying to find? Please explain your criteria a bit more in 'plain english' so we can help troubleshoot your IF statement, and also please describe your problem. You probably need a 'for each' that seems to be missing.
Did you try starting with the simple Add Column tab in the ribbon and click the "Conditional Column" button? This will give you the bones/structure to start your formula.