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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RenateBK
Helper I
Helper I

How to create a slicer based on column headers

Hello, 

 

I am trying to set up a slicer for a data set where all the data is categoried strictly through column headers.

Received         Opened            Click

10                   6                        2

12                   9                        3

etc.

 

I would like to create a slicer based on column names, but due to how the data is set up I cannot drag and drop, as my slicer turns out like this:

RenateBK_0-1670841081870.png

 

From reading other threads I have created a separate table and I've managed to create a list of the headers. However, I am struggling with how to establish a relationship between this table and the column headers and cannot make that function 

let
    Source = Table.ColumnNames(TheTable as table) as list,
    #"Converted to Table" = Table.FromList(Source, null, {"TheHeaders"})
in
    #"Converted to Table"

 

How can I set it up using the list or is there a better/easier way to set this up?

 

Thank you

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@RenateBK , the expected output is not clear. But I think field parameters can help

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

View solution in original post

2 REPLIES 2
RenateBK
Helper I
Helper I

Thank you so much for some great sources, I managed to solve my issue using field parameters. 

amitchandak
Super User
Super User

@RenateBK , the expected output is not clear. But I think field parameters can help

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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