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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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