Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi
I want to build a Dynamic Table in Dax, which changes each time the slicer date changes, it needs to
-Return 1 Record Per Student ID
-Only Include Students where there start date is between the slicer dates
-Only return 1 Record Per Student, where the Status_Start_Date is the max which is equal to for less than the slicer end date.
For Example, with the below records
If the Slicer was Set
Min = 1/9/22
Max 8/5/23
A Temp Table would show
| student_ID | Student_Start_Date | Status_Start_Date |
| A1 | 1/9/22 | 5/5/23 *Note it would not show the record 9/11/22 as the slicer max is not yet at this mate |
| B1 | 2/10/22 | 3/3/23 |
| C1 | 2/10/22 | 5/5/23 |
Is this Possible?
Thanks
Solved! Go to Solution.
Please see file attach.
File attach is not available for all the users but you can use a onedrive, google drive, we transfer or similar link to upload your files.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @steadydriver ,
You need to create a calendar table, then add the following measure:
User Within dates =
IF (
SELECTEDVALUE ( StudentsStatus[status_star_date] )
= MAXX (
SUMMARIZE (
FILTER (
ALLSELECTED ( StudentsStatus ),
StudentsStatus[Student_ID]
IN VALUES ( StudentsStatus[Student_ID] )
&& StudentsStatus[status_star_date] <= MAX ( 'Calendar'[Date] )
),
StudentsStatus[Student_ID],
"date", MAX ( StudentsStatus[status_star_date] )
),
[DATE]
),
1
)
Now you can use this as a filter on your table visualization:
In this case I'm using it in the visual itself but it does not need to be there:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi for some reason I don't seem to have the option to upload by pbix, are you able to upload your example? Thanks
Please see file attach.
File attach is not available for all the users but you can use a onedrive, google drive, we transfer or similar link to upload your files.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi
This is doing some of what I want but not all
If I use your measure
The issue I have with the data is students can have many records but I need to filter just 1 record and count the Status.
The Link in the model is between "Student_Start_Date" and the Date Table, and NOT "Status_Start_Date", although if I change the relationship to "Status_Start_Date", this doesn't fix the Measure.
Hi @steadydriver ,
In my test I get the correct result:
Can you share a sample file please?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!