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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Sandrine
Frequent Visitor

Filter page based on slicer selection

Hello everyone,

 

I have a slicer that goes from -2 to 200.

I would like to filter the page visuals (table, charts, etc) , so if my slicer selection is under 10 i would like to filter/display only values where my flag = 1 and my task = 1.

Kind regards

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

Hi @Sandrine ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1669792650006.png

(2) We can create a measure. 

Measure Filter = 
var _selectedvalue=SELECTEDVALUE('Parameter'[Parameter])
return
IF(_selectedvalue<10&&_selectedvalue<>BLANK(), IF(SELECTEDVALUE('Table'[Flag])=1 && SELECTEDVALUE('Table'[Task])=1,1,0),1)

(3) The following illustration shows that the measure values are filtered.

vtangjiemsft_1-1669792749890.png

Best Regards,

Neeko Tang

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

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @Sandrine ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1669792650006.png

(2) We can create a measure. 

Measure Filter = 
var _selectedvalue=SELECTEDVALUE('Parameter'[Parameter])
return
IF(_selectedvalue<10&&_selectedvalue<>BLANK(), IF(SELECTEDVALUE('Table'[Flag])=1 && SELECTEDVALUE('Table'[Task])=1,1,0),1)

(3) The following illustration shows that the measure values are filtered.

vtangjiemsft_1-1669792749890.png

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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