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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

undefined

HI,

   I"m unable to understand why this measure is not working...

SCENARIO :  

I want to show the data of a table that contains 3 accounts 1) Grut      2)lik     3) jag

i have above 3 accounts and in the slicer i need to show Grut & jag ,

requirement 1-  when i clicked on Grut it should show Grut and lik data

requirement 2-  when i clicked on jag it should show jag and lik data..

 

I TRIED CREATING THIS MEASURE

selection = var sm=SELECTEDVALUE(table(col(grut,lik,jag))

                     Return if(sm="grut",filter(table,table(col)<>jag),if(sm="jag",filter(table,table(col)<>grut,"null")

 

 

and it showing as "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

 Please help me to resolve this and show the data

 

 

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

Hi, @Anonymous 

Try the following steps:

1. enter a new table 'Slicer Table'

veasonfmsft_0-1664243942640.png

2. put a filter measure to your table visual filter pane

filter =
VAR a =
    SWITCH (
        SELECTEDVALUE ( 'Slicer Table'[Value] ),
        "Grut", IF ( MAX ( 'Table'[Column] ) IN { "Grut", "lik" }, 1 ),
        "jag", IF ( MAX ( 'Table'[Column] ) IN { "jag", "lik" }, 1 ),
        0
    )
RETURN
    IF ( ISFILTERED ( 'Slicer Table'[Value] ), a, 1 )

veasonfmsft_1-1664244663333.png

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Try the following steps:

1. enter a new table 'Slicer Table'

veasonfmsft_0-1664243942640.png

2. put a filter measure to your table visual filter pane

filter =
VAR a =
    SWITCH (
        SELECTEDVALUE ( 'Slicer Table'[Value] ),
        "Grut", IF ( MAX ( 'Table'[Column] ) IN { "Grut", "lik" }, 1 ),
        "jag", IF ( MAX ( 'Table'[Column] ) IN { "jag", "lik" }, 1 ),
        0
    )
RETURN
    IF ( ISFILTERED ( 'Slicer Table'[Value] ), a, 1 )

veasonfmsft_1-1664244663333.png

Best Regards,
Community Support Team _ Eason

 

Anonymous
Not applicable

Thank you soo much for your valuable help😊

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.