Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello,
I'm trying to create a calculated table that is summarized with the latest values based on a date slicer.
Here is an example:
ColumnID UserName UserValue Date
1 | Charles | 1 | 1/23/2018 |
1 | Charles | 6 | 2/15/2018 |
1 | Charles | 4 | 4/2/2018 |
2 | Lisa | 4 | 3/1/2018 |
2 | Lisa | 8 | 3/27/2018 |
3 | Sam | 5 | 1/30/2018 |
4 | Ashley | 2 | 1/11/2018 |
4 | Ashley | 5 | 1/31/2018 |
4 | Ashley | 6 | 3/5/2018 |
4 | Ashley | 3 | 5/12/2018 |
If I use an As Of Date of 01/28/2018 Id like:
ColumnID UserName UserValue Date
1 | Charles | 1 | 1/23/2018 |
4 | Ashley | 2 | 1/11/2018 |
An As Of Date of 03/02/2018
ColumnID UserName UserValue Date
1 | Charles | 6 | 2/15/2018 |
2 | Lisa | 4 | 3/1/2018 |
3 | Sam | 5 | 1/30/2018 |
4 | Ashley | 5 | 1/31/2018 |
AsOF 05/01/2018
ColumnID UserName UserValue Date
1 | Charles | 4 | 4/2/2018 |
2 | Lisa | 8 | 3/27/2018 |
3 | Sam | 5 | 1/30/2018 |
4 | Ashley | 6 | 3/5/2018 |
Many thanks for your help!
Solved! Go to Solution.
Hi @Anonymous
Create a date table without relationship with your table.
date = CALENDARAUTO()add [Date] to the slicer,select "before" from the drop-down list.
Measure = VAR maxselected = MAX ( 'date'[Date] ) VAR max_fit = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[ColumnID] ), [Date] < maxselected ) ) RETURN IF ( MAX ( 'Table'[Date] ) = max_fit, 1, 0 )
add [Measure] to the visual level filter of the table as above
Hi @Anonymous
Create a date table without relationship with your table.
date = CALENDARAUTO()add [Date] to the slicer,select "before" from the drop-down list.
Measure = VAR maxselected = MAX ( 'date'[Date] ) VAR max_fit = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[ColumnID] ), [Date] < maxselected ) ) RETURN IF ( MAX ( 'Table'[Date] ) = max_fit, 1, 0 )
add [Measure] to the visual level filter of the table as above
If the user can use filter pane. Then you can Advance filter. There you have the option for <=. you can use page or visual level filter as per need
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |