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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.