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 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 XYZ] = 1 {
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"
}
Solved! Go to Solution.
@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"
@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"
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Triggered BY --- IS having different team - I want to find only XYZ team is triggered by instead of other team.
and when i did Detection Time - Incident Start some times the value of detection time is more than the incident start. that time i get negative value. because of this i am using if & if
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |