Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |