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
aqsa31
Helper II
Helper II

Unselect all should hide all the data

Just like how it is done in Tableau. when you click on 'Select all' all the data is shown in the dashboard as visuals, but when you click 'Select all' again and the tick boxes disappear, all the data should also disappear, is there a way to achieve that in Power BI?

 

aqsa31_0-1681982789672.png

 

aqsa31_1-1681982803999.png

 

 

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

Hi @aqsa31 ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1682303646809.png

Table2:

Table 2 = VALUES('Table'[Client])

vbinbinyumsft_1-1682303683699.png

2. add a slicer visual with Table 2 field, add a table visual with Table field

vbinbinyumsft_2-1682303757515.png

3. create a measure with below dax formula and add it to table visual filter pane

Measure =
VAR _a =
    SELECTEDVALUE ( 'Table'[Client] )
VAR _b =
    SELECTEDVALUE ( 'Table 2'[Client] )
VAR _c =
    CONCATENATEX ( 'Table 2', [Client] )
RETURN
    IF (
        ISFILTERED ( 'Table 2'[Client] ),
        IF (
            HASONEFILTER ( 'Table 2'[Client] ),
            IF ( _b = _a, 1 ),
            IF ( CONTAINSSTRING ( _c, _b ), 1 )
        ),
        0
    )

vbinbinyumsft_3-1682303863169.png

Animation01.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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-binbinyu-msft
Community Support
Community Support

Hi @aqsa31 ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1682303646809.png

Table2:

Table 2 = VALUES('Table'[Client])

vbinbinyumsft_1-1682303683699.png

2. add a slicer visual with Table 2 field, add a table visual with Table field

vbinbinyumsft_2-1682303757515.png

3. create a measure with below dax formula and add it to table visual filter pane

Measure =
VAR _a =
    SELECTEDVALUE ( 'Table'[Client] )
VAR _b =
    SELECTEDVALUE ( 'Table 2'[Client] )
VAR _c =
    CONCATENATEX ( 'Table 2', [Client] )
RETURN
    IF (
        ISFILTERED ( 'Table 2'[Client] ),
        IF (
            HASONEFILTER ( 'Table 2'[Client] ),
            IF ( _b = _a, 1 ),
            IF ( CONTAINSSTRING ( _c, _b ), 1 )
        ),
        0
    )

vbinbinyumsft_3-1682303863169.png

Animation01.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.