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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

Filter a visual on or before today's date

Good Afternoon, 

 

Is there an easy way using the filters pane to filter visuals on or before today's date? 

 

I can't seem to see this as an option which seems a bit odd unless I'm missing it! 

 

Thanks 

2 ACCEPTED SOLUTIONS
mlsx4
Super User
Super User

Hi @pigsinblankets 

 

If you have a calendar table, you can create an offset column which returns -1 if it's before today's date or 0 otherwise. Then, you can use filter pane to filter by <0 values

Offset = IF('Calendar'[Dates]<=TODAY(),-1,0) 

View solution in original post

DOLEARY85
Super User
Super User

Hi,

 

You could created a field in power query that flags all dates from today and use that on in the filter pane:

 

Power query column: if [Date] >= Date.From(DateTime.LocalNow()) then 1 else 0 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

4 REPLIES 4
DOLEARY85
Super User
Super User

Hi,

 

You could created a field in power query that flags all dates from today and use that on in the filter pane:

 

Power query column: if [Date] >= Date.From(DateTime.LocalNow()) then 1 else 0 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Thank you @DOLEARY85 🙂

mlsx4
Super User
Super User

Hi @pigsinblankets 

 

If you have a calendar table, you can create an offset column which returns -1 if it's before today's date or 0 otherwise. Then, you can use filter pane to filter by <0 values

Offset = IF('Calendar'[Dates]<=TODAY(),-1,0) 

Ahh thank you @mlsx4 🙂 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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