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.
I have two tables that deal with dates. One is a Date Table that contains a basic_date calculated column. This other table is an Instructional Date Calendar that contains all the days my school system has held class on for the past 5 years. Each day has an instructional day number. This allows me to lign up my dates across years irregardless of weekends and holidays. In hindsight, I probably should have simply included all my calculated columns and measures in the date table but I am too far down the road now. I now need to find the most recent instructional day for each day in the Date Table. I am trying to work around the weekends and holidays during the school day. Some of my metrics need to calculate the number of days a student is enrolled and if I try to simply use Today() and am looknig at a table on a weekend, there will be an error. I have read several threads that used Earlier but could just not get it to quite work. The two fields I think that I need from the Date Table are Date Key and Basic Date. I am attaching screenshots of the tables if that helps at all.
Solved! Go to Solution.
I finally gave up and created an additional column in the table and manually entered the data I needed. Ultimately the way I was thinking about the formula would only create data for a single year. I really wanted to have repeating values for each school year. Thanks for you the response.
You may try using TOPN.
https://community.powerbi.com/t5/Desktop/Find-last-value-based-on-date/m-p/293150#M129228
I finally gave up and created an additional column in the table and manually entered the data I needed. Ultimately the way I was thinking about the formula would only create data for a single year. I really wanted to have repeating values for each school year. Thanks for you the response.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |