cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
HelpAccount
Frequent Visitor

How to Slice on mulitple columns not values within a column

I'm trying to create a slicer where you select different columns and those columns appear inside a slicer and you can select which columns are shown on the report. Currnently I can only find a way of selecting one column to go inside a slicer and then the data within that column appears as the different options.

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft
Microsoft

Hi @HelpAccount,

I try to reproduce your scenario as follows.

I create the sample data table named Test.

Capture1.PNG

Slicer is used to filter rows. So I right click the table->Edit Query, select all the columns->click Unpivot columns under Transfer on home page. Select Close&Apply, you will get the following table.

Capture2.PNG

Create a slicer including Attribute column, and a table visual including value column. When you select the A, it will return all values under A field. When you select B, it will changes automatically.

 Capture3.PNGCapture4.PNG

If you have other issues, please feel free to ask.

Best Regards,
Angelia

 

View solution in original post

4 REPLIES 4
v-huizhn-msft
Microsoft
Microsoft

Hi @HelpAccount,

I try to reproduce your scenario as follows.

I create the sample data table named Test.

Capture1.PNG

Slicer is used to filter rows. So I right click the table->Edit Query, select all the columns->click Unpivot columns under Transfer on home page. Select Close&Apply, you will get the following table.

Capture2.PNG

Create a slicer including Attribute column, and a table visual including value column. When you select the A, it will return all values under A field. When you select B, it will changes automatically.

 Capture3.PNGCapture4.PNG

If you have other issues, please feel free to ask.

Best Regards,
Angelia

 

Thanks that works great!

 

One more questions. Imagine in your example I have letters that go all the way to Z so the list is very large. Is there a way to add hierarchies so I can group some of the letters together. Or alternatively add additional columns at the top which are a sum of multiple letters?

 

Example: A-E becomes one option, F-P another, Q-Z another. Then either you have the individual letters below this or even better you can expand the above 3 options?

Hi @HelpAccount

Please add a calculated column to calculate groups, please reference to this similar case.

Then select the new calculated column and value->unpivot, you will get expected result.

Best Regards,
Angelia

I used SUM to combine multiple columns. Is the correct calculated column? It appears in the report view but not the data view. I cannot find an option for value/ unpivot.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors