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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors