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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Table Visualization for Selected Slicer Subgrouping

I have a group of data in a table "ItemGroups" with the following format:

 

ItemGroup table.JPG

 

 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.

 

Slicer.JPG

 

Can this be done as a visual filter using a measure?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.