Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Friends,
I am creating a virtual date table with start date and end date, In this table I want to read the rows virtually and assign working hours as
Monday 6.00AM to 11.59PM,
Tuesday as 12.00AM to 3.00AM & 6.00PM to 11.59PM,
Wednesday as 12.00AM to 3.00AM & 6.00PM to 11.59PM,
Thursday as 12.00AM to 3.00AM & 6.00PM to 11.59PM,
Friday as 12.00AM to 3.00AM
Rest of the hours as non-working hours.
Please help me in getting this thru dax... Power BI
I need to calculate date difference between two dates, after getting the date difference, I need to assign in the case of Monday - 17 hrs, Tuesday - 20 hrs, Wednesday - 20 hrs, Thursday - 20 hrs, Friday - 3 hrs. And these 17 hrs, 20 hrs, 20 hrs, 20 hrs, 3 hrs also I need to calculate if the date difference is in below mentioned timings of each day.
Monday - 5am to 11.59pm
Tuesday - 12.00am to 3am and 5am to 11.59pm
Wednesday - 12.00am to 3am and 5am to 11.59pm
Thursday - 12.00am to 3am and 5am to 11.59pm
Friday - 12.00am to 3am
Saturday - Holiday
Sunday - Holiday
Hope you understood the scenario
In these timings machines are running, i need to calculate machine stoppages in between if any, I am having machine stoppage start time and end time...
Need to ignore the timings of stoppages if the time falls other than working hours (as per above list)
Hi @Ram2502
Can you provide the expected output you want?
You can create a calendar data , then add the column e.g
Virtual_table=
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
71 | |
56 | |
39 | |
35 |
User | Count |
---|---|
66 | |
66 | |
59 | |
53 | |
45 |