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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Selecting 2 values with one filter

Hi everyone,

 

My data is filtered by  a Scenarios table

 

Scenario

1

2

3

4

 

I need to use a single select filter that when a user filters by 1, I need to filter by 1. When the user filters by 2, it needs to select 1 and 2, when the user selects 3, 1,2 and 3, and so on

 

Is there an easy way to do this?

 

I know multi select is available but users find that difficult and forget to do it

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

Hi, @Anonymous 

According to your description, I can clearly understand your requirement, I think you can achieve this using measure and visual filter, you can follow my steps:

  1. Create a table to be placed into the slicer:

 

Slicer = 'Scenario'

 

And don’t create a relationship between the two tables:

v-robertq-msft_0-1619402411454.png

 

  1. Create a measure in the main table:

 

Flag =

var _selectedvalue=SELECTEDVALUE(Slicer[Scenario])

return

IF(MAX([Scenario])<=_selectedvalue,1,0)

 

  1. Create a slicer and a table chart and apply a filter to the visual chart like this:

v-robertq-msft_1-1619402411461.png

v-robertq-msft_2-1619402411465.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can clearly understand your requirement, I think you can achieve this using measure and visual filter, you can follow my steps:

  1. Create a table to be placed into the slicer:

 

Slicer = 'Scenario'

 

And don’t create a relationship between the two tables:

v-robertq-msft_0-1619402411454.png

 

  1. Create a measure in the main table:

 

Flag =

var _selectedvalue=SELECTEDVALUE(Slicer[Scenario])

return

IF(MAX([Scenario])<=_selectedvalue,1,0)

 

  1. Create a slicer and a table chart and apply a filter to the visual chart like this:

v-robertq-msft_1-1619402411461.png

v-robertq-msft_2-1619402411465.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.