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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
vbiqvitovs
Frequent Visitor

Advanced Filtering - Dynamic Filter Based on Field Value

I'm attempting to create a report that displays table values for events that occurred today. The data provided by the data source doesn't use datetime values (instead uses int value YYYYMMDD, stored in column job_date), so I have to display the values based on a MAX(job_date). I currently have two columns, job_date and currrent_date, job_date displays the actual date of the event, and current_date displays repeating value of MAX(job_date).

 

How do I go about creating a table visualization in my report that shows only rows where job_date == current_date. I've tried using the advanced filter, but this only filters based on static values.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

If I understand your question correctly:

 

Create a calculated column where your date column is

 

IsItToday = IF ( your Date Column = TODAY() ; 1 ; 0)

 

Do whatever visualizations you want in a report and you can drag this calculated column in the Page level filters (or Report level filters for that matter) and mark the value 1. Then you have filter everything on the page/report for what's happening today.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

If I understand your question correctly:

 

Create a calculated column where your date column is

 

IsItToday = IF ( your Date Column = TODAY() ; 1 ; 0)

 

Do whatever visualizations you want in a report and you can drag this calculated column in the Page level filters (or Report level filters for that matter) and mark the value 1. Then you have filter everything on the page/report for what's happening today.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Kudoed Authors