"Events In Progress" - how to tackle using Power Query
Wyn Hopkins
Solving data challenges for companies and people. Power BI | Excel | Fabric | Solver Budgeting & Consolidation. Part of the Amazing team at Access Analytic Microsoft MVP ??6 Million+ YouTube views
If you have a start date and end date but need to calculate how many people or items were present between those dates then you can use Power Query to help with this.
This approach will work in Power BI and Excel
Source CSV file and Power BI solution is here
I've also done a video using DAX to solve this.
You may find the Power Query method means your data takes longer to refresh but there is likely an upside in the speed of your interactions between visuals in the report for your end users.
Wyn
Follow me on Linkedin
Other Platforms here: https://wyn.bio.link/
Data Analyst | Business & Supply Chain Analytics at Synergy Global Housing
2 年Thanks for sharing Wyn! Just to add to the topic, so far I was calculating a table using DAX by CROSSJOIN-ing the Check in and Check out dates with a CALENDAR() calculated table for the period I needed and FILTER-ed to keep only dates that are between the check in and check out date. I'll give a try to the PowerQuery way now!
Production planning | Reporting and analysis | Process and systems development
2 年Awesome, thanks for sharing, Wyn.