Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

How do I create a summarized table with the latest records based on a date?

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

1Charles11/23/2018
1Charles62/15/2018
1Charles44/2/2018
2Lisa43/1/2018
2Lisa83/27/2018
3Sam51/30/2018
4Ashley21/11/2018
4Ashley51/31/2018
4Ashley63/5/2018
4Ashley35/12/2018

 

If I use an As Of Date of 01/28/2018 Id like:

 

ColumnID UserName UserValue Date

1Charles11/23/2018
4Ashley21/11/2018

 

An As Of Date of 03/02/2018

 

ColumnID UserName UserValue Date

1Charles62/15/2018
2Lisa43/1/2018
3Sam51/30/2018
4Ashley51/31/2018

 

AsOF 05/01/2018

 

ColumnID UserName UserValue Date

1Charles44/2/2018
2Lisa83/27/2018
3Sam51/30/2018
4Ashley63/5/2018

 

Many thanks for your help!

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

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.
 
Create a measure in your table
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 )
Capture16.JPG

add [Measure] to the visual level filter of the table as above

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

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.
 
Create a measure in your table
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 )
Capture16.JPG

add [Measure] to the visual level filter of the table as above

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

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

 

Screenshot 2019-10-23 22.12.38.png

 

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors