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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
nataliesmiy1357
Helper IV
Helper IV

How do a filter on the entire page

Hello!  I am wanting to create a filter on the entire page of the Top N datetime.

 

I am able to do this on each individual visual... but not the entire page.  

 

I want the page to show the latest date in the dataset when there are no other filters selected.

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@nataliesmiy1357 

 

 

there is are custom slicer called  preselected slicer . 

download the sample ( you will use it later on ) . 

Daniel29195_0-1726085056366.png

 

 

open the sample  you that you ve downloaded. 

copy from the sample the table preselectedslicer to your model . 

Daniel29195_1-1726085213515.png

 

 

now for the slicer you have 3 values to populate : 

in fields --> date

in pre selection --> a measure that we will create it later. 

dirty status -->  the column isdirtysclier1 ( from the table you copy paste it from the sample ) 

Daniel29195_2-1726085263309.png

 

 

 

now simply create the following measure :  ( assuming you have a star schema )  that you will add it to the pre selection : 

 

m = 

var max_date = max(dimdate[date])

 

return 

switch (

true () ,

iscrossfiltered ( fact_table) , 

if ( selectedvalue(dimdate[date]) , max_date ,1 , 0  ) , 1 ) 

 

 

( dont forget to hide the visual)   

 

hope this helps . 

 

View solution in original post

1 REPLY 1
Daniel29195
Super User
Super User

@nataliesmiy1357 

 

 

there is are custom slicer called  preselected slicer . 

download the sample ( you will use it later on ) . 

Daniel29195_0-1726085056366.png

 

 

open the sample  you that you ve downloaded. 

copy from the sample the table preselectedslicer to your model . 

Daniel29195_1-1726085213515.png

 

 

now for the slicer you have 3 values to populate : 

in fields --> date

in pre selection --> a measure that we will create it later. 

dirty status -->  the column isdirtysclier1 ( from the table you copy paste it from the sample ) 

Daniel29195_2-1726085263309.png

 

 

 

now simply create the following measure :  ( assuming you have a star schema )  that you will add it to the pre selection : 

 

m = 

var max_date = max(dimdate[date])

 

return 

switch (

true () ,

iscrossfiltered ( fact_table) , 

if ( selectedvalue(dimdate[date]) , max_date ,1 , 0  ) , 1 ) 

 

 

( dont forget to hide the visual)   

 

hope this helps . 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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