Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello, I am trying to calculate the availability/uptime of applications. But each application has its own online hours.
Essentially, an application in our company does not have to be online 24/7, and an outage is only recorded if it occurred during the app's online hours.
My Online Hours file has the weekly schedule for each app, according to the day of the week.
e.g.
Schedule | Day of Week Num | Day of Week | Start Time | End Time | Online Minutes |
App A Schedule | 1 | Mon | 6:00am | 12:00am | 1080 |
App A Schedule | 2 | Tue | 6:00am | 12:00am | 1080 |
App A Schedule | 3 | Wed | 6:00am | 12:00am | 1080 |
App A Schedule | 4 | Thu | 2:00am | 4:00am | 120 |
App A Schedule | 4 | Thu | 6:00am | 12:00am | 1080 |
App A Schedule | 5 | Fri | 6:00am | 12:00am | 1080 |
App A Schedule | 6 | Sat | 8:00am | 12:00pm | 240 |
App A Schedule | 7 | Sun | 8:00am | 12:00pm | 240 |
App B Schedule | 1 | Mon | 12:00am | 12:00am | 1440 |
App B Schedule | 2 | Tue | 12:00am | 12:00am | 1440 |
App B Schedule | 3 | Wed | 12:00am | 12:00am | 1440 |
App B Schedule | 4 | Thu | 12:00am | 12:00am | 1440 |
... | ... | ... | ... | ... | ... |
In the above table, notice how Application A is not expected to be online all the time. And, there are two entries for Thursday; it needs to be available 2am-4am, as well as 6am-midnight like the other days. In contrast, Application B is expected to be online all the time.
I have a Calendar table using CALENDARAUTO(10), with various columns.
Date | Schedule | Day of Week Num | Day of Week | Online Minutes |
Feb 28 2022 | App A Schedule | 1 | Mon | 1080 |
Feb 28 2022 | App B Schedule | 1 | Mon | 1440 |
Mar 1 2022 | App A Schedule | 2 | Tue | 1080 |
Mar 1 2022 | App B Schedule | 2 | Tue | 1440 |
Mar 2 2022 | App A Schedule | 3 | Wed | 1080 |
Mar 2 2022 | App B Schedule | 3 | Wed | 1440 |
Mar 3 2022 | App A Schedule | 4 | Thu | 1200 |
Mar 3 2022 | App B Schedule | 4 | Thu | 1440 |
Mar 4 2022 | App A Schedule | 5 | Fri | 1080 |
Mar 4 2022 | App B Schedule | 5 | Fri | 1440 |
... | ... | ... | ... | ... |
Solved! Go to Solution.
I don't think you can join the schedule to the calendar but we can use TREATAS to move the day of the week filter to get what I think you are looking for.
I have attached my sample file for you to look at.
I don't think you can join the schedule to the calendar but we can use TREATAS to move the day of the week filter to get what I think you are looking for.
I have attached my sample file for you to look at.
Wow! This does appear to work correclty. Thank you so much! Had no idea about TREATAS.
Hi @moon_walker here's a link to an article about how to use date and time tables. Maybe this'll help 🙂
Thank you! This looks pretty interesting, gonna have to study it more. I think it might come in handy.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
100 | |
65 | |
44 | |
36 | |
36 |