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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
DeepakJha23
Helper I
Helper I

Displaying relevant column values based on slicer selection.

Hi Power BI Community,

 

We are working on a requirement where we want to display the relevant values of column 2 based on the slicer selection made in column 1. Also, the slicer selection is multi select so it should show ALL in the card box when no selection is made.

 

See the image below for more details :

DeepakJha23_0-1678858496209.png

In the above slicer, ALL is selected but the display card shows the default first value(A) instead it should show ALL.

If the slicer is changed to 1, the display card should show A,B.

If the slicer is multi selected to 1,2 display card should change to A,B,C,D.

 

I would appreciate any help on this.

 

Thanks,

Deepak

 

 

@amitchandak @Sahir_Maharaj @lbendlin 

 

1 ACCEPTED SOLUTION

Please provide sample data that covers your issue or question completely.

 

Display = if(isfiltered('Table'[Column 1]),CONCATENATEX(VALUES('Table'[Column 2]),[Column 2],","),"All")

View solution in original post

8 REPLIES 8
lbendlin
Super User
Super User

lbendlin_0-1678885158755.png

 

@lbendlin Thanks for responding.

 

Unfortunately, it worked on the sample data how you have posted above but when I tried this on the actual data the display card is showing repeated values.

 

Like if I select 1 in the column1 slicer , display card is showing A,A,A,A,A...... instead it should only show A.

 

We have long string values in column 2.

write like this

Display = 
           IF(ISFILTERED('Table'[Column 1]),
           CONCATENATEX(SUMMARIZE('Table','Table'[Column 2]),'Table'[Column 2],","),
            "ALL"
                )

 

Please provide sample data that covers your issue or question completely.

 

Display = if(isfiltered('Table'[Column 1]),CONCATENATEX(VALUES('Table'[Column 2]),[Column 2],","),"All")

@lbendlin Thanks. Using the VALUES solved the issue. Really appreciate your help.

Ahmedx
Super User
Super User

Is this what you are looking for?
Screen Capture #585.pngScreen Capture #586.png

@Ahmedx 

 

Thanks for responding on this query.

 

I tried the DAX you have suggested but due to the 4th line of DAX Table1[column1] = 1, this gave the below error :

 

DeepakJha23_0-1678891651980.png

 

 

The column 1 in my data is text data type.

 

Anonymous
Not applicable

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.