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
FabiNeed
Helper I
Helper I

Create hirachy slicer from list of values

Hi Power BI experts, I once again require your help! 🙂

 

This time, I have a list with values from which I need to build a hirachy slicer. 

 

The list contains the following data (all in one column):

 

1-1-1
1-2-1
1-3-1
1-1-1-1
1-1-1-2
1-1-1-3
1-1-1-4
1-2-1-1
1-2-1-2
1-2-1-3
1-2-1-4
1-3-1-1
1-3-1-2

(Table 1)

 

With power query, I would like to transform it to the following table, however, I was not able to figure out the necessary transformation steps:

 

1-1-1 1-1-1-1
1-1-1 1-1-1-2
1-1-1 1-1-1-3
1-1-1 1-1-1-4
1-2-1 1-2-1-1
1-2-1 1-2-1-2
1-2-1 1-2-1-3
1-2-1 1-2-1-4
1-3-1 1-3-1-1
1-3-1 1-3-1-2

(Table 2)

 

As an end result, I would like the second table to create a hirachy slicer (this step I know how to do):

FabiNeed_0-1666901750966.png

 

I would really appreciate any help/ideas transforming Table 1 to Table 2 in power query! Thanks!

 

 

 

 

 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @FabiNeed 

 

Download the attached file to find the solution:

VahidDM_0-1666914974933.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

2 REPLIES 2
FabiNeed
Helper I
Helper I

Thank you for this perfect solution!

VahidDM
Super User
Super User

Hi @FabiNeed 

 

Download the attached file to find the solution:

VahidDM_0-1666914974933.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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