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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
RickAll
New Member

Grouping Dimension for use in Slicer

I have a DimStore dimension table that has a list of Store names (see below for example). I am trying to create a grouping that has all stores except for Store 99, and a grouping of all Stores. The end result is to have a slicer/filter that has 2 options:

1. All Stores

2. All Stores Excluding Store 99

 

STORE LIST:

Store 1

Store 2

Store 3

Store 4 

Store 5

Store 6

Store 99

Store 7

Store 8

Store 9

Store 10

 

I have tried the 'New Group' feature, and can create a grouping that contains all stores except for Store 99, but then can't create a grouping that includes Store 99, since Store 99 is only item left in Ungrouped values. Any suggestions on best way to accomplish this would be appreciated.

 

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @RickAll 

For the 'New Group' feature, It's like adding a calculate column, since you had added a group (tag) for all stores except for Store 99, now there only is Store 99 could be added group.

Now you could try these two ways:

1.

Use the 'New Group' feature to add another group "All Stores" again.

Then download a custom visual "HierarchySlicer" from marketplace and then drag the two group (fields) into it.

5.JPG

2.

In Edit Queries, duplicate the basic table

Then use the same logic to add two columns.

6.JPG

 

Then unpivot the Level1 and Level2 and apply and close.

Now create the relationship between table and duplicate table by STORE LIST column and set cross filter direction is "Both"

Set Value field as a slicer.

 

and here is pbix file, please try it.

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.