Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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 :
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
Solved! Go to 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")
@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.
Is this what you are looking for?
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 :
The column 1 in my data is text data type.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |