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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sander800
Helper I
Helper I

Create list based on multiple columns

Hi All,

 

I am new here so please correct me if I am wrong.

 

I am trying to create a cutsom filter list based on multiple columns. I have a table with 3 columns each column representing a hierachy level. I want to create a custom list (which I can then use for filtering) based on these three columns. The list does not need to contain all members of the columns but a manual selection. Consequently I would want to use this list to filter the table.

 

This is my table

  

Profit Center lvl1Profit Center lvl2Profit Center lvl3Value
NorthA1100
NorthB2200
WestC3250
EastD4300
EastE5325
EastF6400

 

I would like to have a slicer to filter this table like below (different columns in 1 list). This list will be used for filtering the initial table.

 

List
North
A
B
5
6

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Naturally, that would happen, if you unpivot.

 

The reason, I'm asking, is that there is no intuitive way to slice the original table like you are asking for unless you create all the possible combinations of the 3 columns. That can be done in 2 ways (as I see it). Either unpivot or create all the combinations with a concatenate function (which, I think, is a very clumsy method). Either way, your database will grow in size. Unfortunately, I'm not familiar with any convenient way to slice like you are asking for.

View solution in original post

Hi Martin,

 

Thank you for all your help. Though not the outcome I hoped for at least now I know there are no alternate solutions.

 

KR,

Sander

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Sander800

 

If I understand your challenge correctly, you'd like a hierachy slicer. There is a great custom visual for this purpose, which is called "Hierachy Slicer". You get it by looking for the "From Store" button in the menu under the headline "Custom Visuals". See screenshot below.

 

If this doesn't accommodate your problem, let me know, and I will try to help you solve the problem.

 

Best,

Martin

 

custom visual.png

Hi Martin,

 

Sorry for the late reply. I am aware of the hierarchy slicer, quite a nice visual (though too slow for large hierarchies).

 

I am actually not looking to see this in a hierachy. I am trying to get (manually) selected values from different columns in 1 flat list/ slicer.

Anonymous
Not applicable

Hi @Sander800

 

No problem. I see. So you want a column with all the values from your table, which you can then slice on? Is that correctly understood? If I don't understand correctly, could I ask you to elaborate a little more, possibly provide a new example? I really want to help you 🙂

 

Best,

Martin

Hi Martin,

 

Appreciate the help!

 

I can manage a list based on 1 column :). I want to create a list based on multiple columns (see screenshot). I want to manually create a list of values from different columns.

For example in 1 flat list:

 

  • North from colum Profit Center lvl1
  • A and B from colum Profit Center lvl2
  • 1, 2 and 3 B from colum Profit Center lvl3

 

 

Multi column list.jpg

Anonymous
Not applicable

Alright, I think I understand now. One quick question before I move on to a solution:

 

Is it necessary for "Profit Center lvl1", "Profit Center lvl2" and "Profit Center lvl3" to be seperate columns?

I guess not per se, but if I would unpivot them it would increase my database size of course

Anonymous
Not applicable

Naturally, that would happen, if you unpivot.

 

The reason, I'm asking, is that there is no intuitive way to slice the original table like you are asking for unless you create all the possible combinations of the 3 columns. That can be done in 2 ways (as I see it). Either unpivot or create all the combinations with a concatenate function (which, I think, is a very clumsy method). Either way, your database will grow in size. Unfortunately, I'm not familiar with any convenient way to slice like you are asking for.

Hi Martin,

 

Thank you for all your help. Though not the outcome I hoped for at least now I know there are no alternate solutions.

 

KR,

Sander

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors