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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
foging
Frequent Visitor

Filter column by date and by another date

Hello,

 

I have this table where I'm filtering "Project status" by YearMonth, using my date dimension. Now, in the same visual table I need to show the "Project status" from another date, lets say 7 months back. I have found solutions for this using measures, but I don't need aggregations, I need to show text. This is what I need:

 

ID      Projects status Period X        Projec status Period Y

001      Active                                  Delayed

 

Is this possible in any way?

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

Hi @foging ,

Please try to create a copy of the Table: Table 2. Then create the following relationship. You can use two date slicers to filter the contents of each of the two tables.

 

vkkfmsft_0-1645504114873.png

vkkfmsft_2-1645504297451.png

vkkfmsft_3-1645504344226.png

 

Or just use the following measure without creating a copy of the Table to calculate the corresponding state.

 

Measure = 
CALCULATE (
    MAX ( 'Table'[Projects status] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date]
            IN VALUES ( Dates[Date] )
                && 'Table'[ID] = MAX ( 'Table'[ID] )
    )
)

vkkfmsft_4-1645504725005.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @foging ,

Please try to create a copy of the Table: Table 2. Then create the following relationship. You can use two date slicers to filter the contents of each of the two tables.

 

vkkfmsft_0-1645504114873.png

vkkfmsft_2-1645504297451.png

vkkfmsft_3-1645504344226.png

 

Or just use the following measure without creating a copy of the Table to calculate the corresponding state.

 

Measure = 
CALCULATE (
    MAX ( 'Table'[Projects status] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date]
            IN VALUES ( Dates[Date] )
                && 'Table'[ID] = MAX ( 'Table'[ID] )
    )
)

vkkfmsft_4-1645504725005.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

foging
Frequent Visitor

Yes, I have two slicers and I have two date table, "date" and "previous date". But I can't get the "previous date" to filter only "Project Status Period Y". Everything gets filtered on "date", but not on "previous date". I have found measures that work, but I to show the content of the column, in plain text.

amitchandak
Super User
Super User

@foging , You need two period slicer for that

 

How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

 

Compare two Brands: https://youtu.be/exN4nTewgbc

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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