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
UsePowerBI
Post Prodigy
Post Prodigy

What happens if both visual and page filters are applied?

Hello

 

I want to enable users to chose their own date filters on a page but I also want to always exclude today's date data from a particular visual on the page.

 

Is it possible to specify a relative date filter on the visual so that it will display all data apart from today's and then enable users apply page filters on top to further filter the data on the visual and the page according to their own date range?

 

Thanks!

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @UsePowerBI ,

I created the data:

v-yangliu-msft_0-1623396640521.png

Here are the steps you can follow:

1. Create measure.

flag =
IF(MAX('Table'[date])=TODAY(),0,1)

2. Place [flag] in Filter, set is=1, apply filter.

v-yangliu-msft_1-1623396640529.png

3. Use [date] as a slicer

4. Even if the slicer selects the date, only all data except today will be displayed in the visual object

5. Result:

v-yangliu-msft_2-1623396640536.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @UsePowerBI ,

I created the data:

v-yangliu-msft_0-1623396640521.png

Here are the steps you can follow:

1. Create measure.

flag =
IF(MAX('Table'[date])=TODAY(),0,1)

2. Place [flag] in Filter, set is=1, apply filter.

v-yangliu-msft_1-1623396640529.png

3. Use [date] as a slicer

4. Even if the slicer selects the date, only all data except today will be displayed in the visual object

5. Result:

v-yangliu-msft_2-1623396640536.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@UsePowerBI , You can use a visual level filter to exclude the data of today. But it will be limited by the range of page-level filter if any

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.