Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
| User | Count |
|---|---|
| 55 | |
| 39 | |
| 36 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 138 | |
| 102 | |
| 59 | |
| 36 | |
| 35 |