Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello
I have repeatedly asked for some clarity on how to create a custom slicer but I get answers that are not self-explanatory.
Please if you don't want to describe ALL the steps to achieve this (ie. what and how to create tables, measures, slicers etc if needed) don't waste time to reply as I will not be able to use your answer.
I have a table that I want to filter based on whether a Col1 contains the string "A" or "B".
I want to create a slicer that will have two selections: A and B.
What do I need to code (table? measure?) and what do I need to drop in the slicer field?
Thanks!
Solved! Go to Solution.
Hi @Anonymous
You can filter the value in the filter panel with measure =1, like below:
Not exactly, I need it to filter Col1 and display the values containing A or B.
Is that possible?
Hi @Anonymous
You can filter the value in the filter panel with measure =1, like below:
@Anonymous , Assumption is that col1 is in independent table
measure =
var _max = maxx(allselected(Table),Table[Col1 ])
return
calculate(countrows(Table1), filter(Table1,containsstring(Table1[Column1],_max)))
Hi,
1. You can use the same column in the slicer and select the required string.
2. Click on "New Table" and use the below code to create a new table contains "A" or"B" then establish a relationship with your data and use this new column as a slicer.
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |