This is a very unique example for when working with workdays and weekend days in Power BI.
It came directly out of a request from the Enterprise DNA Support Forum where a member needed to get the day for each weekday but also the day of each weekend into their date table.
So the requirement was for the first weekday to be one, then two and then three. If for example, the day after that is a weekend, then that needs to start at one again and then two for the weekend days.
This is obviously quite a unique requirement but one that I can see having some broad application, especially if you need to compare like for like days between different months.
This was all to be placed within a calculated column as well, which meant considering the context of each row inside the date table.
Once you work through the logic and you see how it’s applied inside of the date table (which is a must-have table inside of any data model), you’ll be quite surprised at how seamlessly you can run this calculation in Power BI versus completing this in any other tool.
We dive into the RANKX function and how you can use it to calculate this unique insight.
Enjoy working through this one. It’s a great idea for new and interesting analysis.
For many more time intelligence concepts and techniques to use in Power BI, check out this particular course module at Enterprise DNA Online.
***** Learning Power BI? *****
FREE COURSE – Ultimate Beginners Guide To Power BI
FREE COURSE – Ultimate Beginners Guide To DAX
FREE – 60 Page DAX Reference Guide Download
FREE – Power BI Resources
Enterprise DNA Membership
Enterprise DNA Online
Enterprise DNA Events
***** Related Support Forum Posts*****
Holidays and weekends
Daily Budget w/o Holidays and Weekends & Cumulative Budget Total Issue
Projecting current profit run rate
For more time intelligence queries to review see here…..