Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
Very new here and to the Power BI world. I've been trying to create a dynamic column selector that can be utilized to switch the "category" of data the chart will show.
For example:
I know how to make a switch for measures--switching between let's say sales volume and revenue data (using unrelated table), but having a hard time creating switch for the category/column
What I tried is:
This setup is not working and each of the category layer is saying that "A table of multiple values was supplied where a single value was expected." I do see why this is not working, but can't figure out how to solve it. Could anyone help with a solution to what I am trying to do, please?
Hi @Anonymous
I have created a post before that can address this:
https://community.powerbi.com/t5/Desktop/Dynamic-Category-Using-a-Slicer/td-p/216971
However, there are several drawbacks to this approach which I forgot to mention:
@Anonymous
Looks like there is no relationship in between the tables.
If any common column in between the tables, please create a relationship. So that you can get the expected data.
If this post helps, then please consider Accept it as the solution to help the other members find it more
If this post was helpful may I ask you to mark it as solution and click on thumb symbol?
Hi @Anonymous ,
Check this post with a similar request to yours.
Check also the video below:
https://www.youtube.com/watch?v=VKkN-FF66Zw
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you @MFelix. I tried the reference method from the youtube link and it definitely works. However, this makes my file extremely large since I had to copy my huge database 3 times (more than 300mb now). Is there a more efficient way to do this?
@venalWhat did you mean by setting relationship? I am unable to create relationship because the 'category' title is the header, not the data, so no column to create relationship between my data table and category table.
@Anonymous
If possible, can you please share sample data and PBIX file to re-pro the issue from our end.
@venalI uploaded my pbix and database file in the links below. I trimmed the data due to size but these data are way bigger (200mb+). Thank you for your help in advance!
pbix:
database:
@danextianThank you for the input. I tried this and looks like the issue you mentioned is making my dashboard inoperable..
Hi @Anonymous
Although I agree with the options provided by the other users the main drawbacks that are present slow reports, increase in size etc makes (in my opinion) difficult to implement and have a good result.
Did you tried my approach of making 3 visual tables with the hierarchies you need and then using bookmarks make the visuals show/hide?
However with this you will make the levels be in the order you want and not on the selection of the user.
Regards
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelixFor now, I will have to stick with your method of creating various visuals and use bookmark to hide/show the chart that the user selects. Still experimenting ways to make this extremely dynamic. Thanks
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.