Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Here is some reading for you.
http://exceleratorbi.com.au/power-pivot-calendar-tables/
http://exceleratorbi.com.au/dax-time-intelligence-beginners/
My idea Is to create a calendar with a Day-ID column starting at 1 and incrementing by 1 for every day (never restarts). Also have another WorkDay-ID column starting at 1 and incrementing by 1 for every workday (never restarts). You can then write custom time intelligence using the ID column to find the Day-ID this year and the same day prior year (current Day-ID minus 365). You can write measures to determine the Start and End workday ID in your current filter context and hence the number of workdays. You can use the Day-iD to find the anchor date (either start or end date 365 days ago) and then the number of work days to set the other end (you have to anchor either the start or end date given the number of days can vary).
I haven't tested it, but at is what I suggest you try.
Here is some reading for you.
http://exceleratorbi.com.au/power-pivot-calendar-tables/
http://exceleratorbi.com.au/dax-time-intelligence-beginners/
My idea Is to create a calendar with a Day-ID column starting at 1 and incrementing by 1 for every day (never restarts). Also have another WorkDay-ID column starting at 1 and incrementing by 1 for every workday (never restarts). You can then write custom time intelligence using the ID column to find the Day-ID this year and the same day prior year (current Day-ID minus 365). You can write measures to determine the Start and End workday ID in your current filter context and hence the number of workdays. You can use the Day-iD to find the anchor date (either start or end date 365 days ago) and then the number of work days to set the other end (you have to anchor either the start or end date given the number of days can vary).
I haven't tested it, but at is what I suggest you try.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |