Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have a group of data in a table "ItemGroups" with the following format:
I want to use a slicer to select a single item. Currently, this returns all the groups in which that item number is a part of. What I am looking for is the table visualization to return all item numbers that share the group. In the example below, I want the table visualization to return all item numbers that contain group B (this will include the selection in the slicer), group H, group N, etc.
Can this be done as a visual filter using a measure?
Solved! Go to Solution.
HI @Anonymous,
For original slicer, it is impossible to achieve your requirement.
You need to create new table as source of slicer and coding measure to filter records.
Steps:
1. Create table with 'item number' and 'groups' from original table as select table.(these tables not have relationship)
Selector =
SELECTCOLUMNS ( Table, "Item Number", [Item Number], "Groups", [Groups] )
2. Use Item Number(from selector table) as source column of slicer.
3. Write measure to get selected group list and check original table row content to return tag.
Tag =
VAR selectList =
CALCULATETABLE ( VALUE ( Selector[Groups] ), ALLSELECTED ( Selector ) )
RETURN
IF ( SELECTEDVALUE ( Table[Groups] ) IN selectList, "Y", "N" )
4. Drag above measure to visual level filter with advanced filter mode to filter records who not equal to "Y" tag.
Regards,
Xiaoxin Sheng
HI @Anonymous,
For original slicer, it is impossible to achieve your requirement.
You need to create new table as source of slicer and coding measure to filter records.
Steps:
1. Create table with 'item number' and 'groups' from original table as select table.(these tables not have relationship)
Selector =
SELECTCOLUMNS ( Table, "Item Number", [Item Number], "Groups", [Groups] )
2. Use Item Number(from selector table) as source column of slicer.
3. Write measure to get selected group list and check original table row content to return tag.
Tag =
VAR selectList =
CALCULATETABLE ( VALUE ( Selector[Groups] ), ALLSELECTED ( Selector ) )
RETURN
IF ( SELECTEDVALUE ( Table[Groups] ) IN selectList, "Y", "N" )
4. Drag above measure to visual level filter with advanced filter mode to filter records who not equal to "Y" tag.
Regards,
Xiaoxin Sheng
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 |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |