Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
hello everyone
let me begin by saying I'm very new both to BI and DAX (my first BI experience)
will trying to calculate the duration of the time worked on a case
I have two columns 1. Opened (case date & time) 2. resolved (case closed date & time)
I would like to create a column that sum their values and will show my how much time has passed between them, in a format that can show more than 24 hours (523:36:54)
is it possible?
Solved! Go to Solution.
Hi @TomBrown ,
You can create columns like DAX below.
Seconds = DATEDIFF(Table1[Opened],Table1[resolved],SECOND)
(h):mm:ss =
var Hour=QUOTIENT(Table1[Seconds],3600)
var Minute=QUOTIENT(Table1[Seconds]-Hour*3600,60)
var Second=Table1[Seconds]-Hour*3600-Minute*60
return
CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(Hour,":"),Minute),":"),Second)
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TomBrown ,
You can create columns like DAX below.
Seconds = DATEDIFF(Table1[Opened],Table1[resolved],SECOND)
(h):mm:ss =
var Hour=QUOTIENT(Table1[Seconds],3600)
var Minute=QUOTIENT(Table1[Seconds]-Hour*3600,60)
var Second=Table1[Seconds]-Hour*3600-Minute*60
return
CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(Hour,":"),Minute),":"),Second)
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much
User | Count |
---|---|
140 | |
113 | |
104 | |
76 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |