Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a report created from different data tables showing train traffic data like this. I need help for 2 issues: 1) How do I make the arrive_delay column to show times as hh:mm:ss instead of as decimal numbers. 2) I need a calculation or a measure that shows in % how many of each days total counted arrives are more than 3:00 minutes delayed and a calculation of the average delay of these delayed arrivals.
Can anyone help me making these calculations or measures?
Solved! Go to Solution.
For the first one, there is a blog article here:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
And a quick measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Seconds-2-HHMMSS/m-p/195615
For the second one, you are going to need the reverse, convert your hhmmss times to seconds probably.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279
For the first issue, you just need to change the format. No matter you create a column or measure.
differnce = Sheet1[real]-Sheet1[schedule]
difference2 = sum(Sheet1[real])-SUM(Sheet1[schedule])
for the second issue,you can try below coding
count% = DIVIDE( CALCULATE(COUNT(Sheet1[schedule]),FILTER(Sheet1,Sheet1[differnce]*86400>180)),COUNT(Sheet1[schedule]))
Proud to be a Super User!
For the first one, there is a blog article here:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
And a quick measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Seconds-2-HHMMSS/m-p/195615
For the second one, you are going to need the reverse, convert your hhmmss times to seconds probably.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
120 | |
101 | |
71 | |
61 |