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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Date Filters

Hi

 

Is there a way to add a date filter that looks at any data before todays date? So when the report is published and a user looks at it the date filter brings up any data before the date they look at it (if that makes sense).

 

 

thanks 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

There are tow methods for you to get the above result.

1. Create a calculated column using DAX below. Then create a slicer using this column and selecting 0 in the slicer to filter your  visuals.

checktoday = IF(Table[DateKey]=TODAY(),1,0)

 


2. Create a measure as below in your table, then drag the measure to a card visual. This measure display all data before today.

salesbeforetoday = CALCULATE(SUM(Table[SalesAmount]),FILTER(Table,Table[DateKey]<TODAY()))

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous,

There are tow methods for you to get the above result.

1. Create a calculated column using DAX below. Then create a slicer using this column and selecting 0 in the slicer to filter your  visuals.

checktoday = IF(Table[DateKey]=TODAY(),1,0)

 


2. Create a measure as below in your table, then drag the measure to a card visual. This measure display all data before today.

salesbeforetoday = CALCULATE(SUM(Table[SalesAmount]),FILTER(Table,Table[DateKey]<TODAY()))

Regards,
Lydia

Anonymous
Not applicable

Thanks very much appreciate it

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors