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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.