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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

how to filter a slicer from another slicer where slicer tables are disconnected

I have tables 'Table A' and 'Table B', which are identical and disconnected.  Table A's values are like:

[Col1]

-------

1

2

3

 

I have two slicers on a page.  The first one uses 'Table A'[Col1] (in single-select mode), and the second one uses 'Table B'[Col1] (in multi-select mode).  I want the selection of the value in my first slicer to limit the values that display in the second one.  In particular, I want the second slicer to only display values that are <= the selected value from the first slicer.  For example, if the user selects value "2" from the first slicer, I want the second slicer to only display values "1" and "2" (not "1", "2", and "3").  How can I achieve this?

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

You can create a measure like the one below and then use it as a visual level filter on your Table2 slicer.

 

Table1Values =
VAR Tbl1Selection =
    MAX ( Table1[Value] )
VAR thisvalue =
    MAX ( Table2[Value] )
RETURN
    IF ( thisvalue <= Tbl1Selection10 )

 

 

mahoneypat_0-1619092917728.png

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Employee
Employee

You can create a measure like the one below and then use it as a visual level filter on your Table2 slicer.

 

Table1Values =
VAR Tbl1Selection =
    MAX ( Table1[Value] )
VAR thisvalue =
    MAX ( Table2[Value] )
RETURN
    IF ( thisvalue <= Tbl1Selection10 )

 

 

mahoneypat_0-1619092917728.png

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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