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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
carlosmeep
Frequent Visitor

Create a slicer for columns

Hi!

I am trying to create a slicer that would let me select the measures shown in a bar chart.

I have created a dissconected table that I will use to select the columns that I want to show:

The problem that i have is that power bi doesn't let select the column:

 

image.png

Thank you very much

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

There are @carlosmeep ,

In powerbi, we couldn't use the dynamic column in visual, we could just change measures. Therefore, you must create measures for each slicer option, and then use the switch function to create a measure that lists all the slicer measures.

If you want to use the dynamic column, I think you need to follow @amitchandak\'s suggestion, and use bookmark to achieve this goal.

Saludos
Zoe Zhi

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@carlosmeep 

Refer :https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks @amitchandak ,

That would word, but power bi won't accept it. It won't allowed the construcction, doesn´t  recognise the column name as a valid input ( 

image.png

in the answer you proposed the error would be (highlighted):

image.png

 

dax
Community Support
Community Support

There are @carlosmeep ,

In powerbi, we couldn't use the dynamic column in visual, we could just change measures. Therefore, you must create measures for each slicer option, and then use the switch function to create a measure that lists all the slicer measures.

If you want to use the dynamic column, I think you need to follow @amitchandak\'s suggestion, and use bookmark to achieve this goal.

Saludos
Zoe Zhi

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

You will be able to select measures. For column, switch try with bookmark

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.