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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX Report Date Filtering

 

Hi,

I have a report that pulls files from weekly reports. I'm trying to make a filter so that only the last report from each month is included. Currently I am manually filtering out only the files by report date.

How can I auto filter these out?

 

screenshot5.png

 

 

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Anonymous 

Try creating a new table:

FilteredTable =
FILTER (
    Table1;
    VAR MaxInMonth_ =
        CALCULATE (
            MAX ( Table1[Date] );
            MONTH ( Table1[Date] ) = MONTH ( EARLIER ( Table1[Date] ) );
            YEAR ( Table1[Date] ) = YEAR ( EARLIER ( Table1[Date] ) );
ALL ( Table1 ) ) RETURN Table1[Date] = MaxInMonth_ )

 

Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).

 

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.