Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello togehter,
is there a way to calculate the difference in hour + / - between two columns?
I have column with Date / Time where the ticket is opend, the second columune include the Date / Time SLA.
So I need the difference, if the SLA is fall belows or they is exceeded.
Many thanks for help.
Solved! Go to Solution.
HI p_fehrenbach
Please consider using this solution in the M query .....
Define both the sla duration and actual duration with date time data types.
Add a column with Difference = sla duration - actual duration
Transform the Difference data type to minutes
Filter where the Difference < 0
Many thanks for the answer. I had already tried that. unfortunately power query changes the type when I load the data into the model, from time to decimal. If I put the data back in time in the model, all decimal numbers are positive.
(The negativ value in this scenario is good one)
For Example in the last Row:
We finished te ticket at the 22.10.2019 16:30:00
It could have been closed until 23.10.2019 12:40.
The Result is + 20:10:00 hours.
The Result have to be - 20:10:00 hours.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |