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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gendalf7771
Frequent Visitor

Selection for table

Hello!

I have a two related columns (string type). It can be represented so:

 

Col1Col2
Aaa
Aab
Bba
Bbb
Bbc
Cca

 

I need to create a visual with dropdown menu, which will contains values from both columns, but only second column's values are selectable, like so:

A
aa
ab
B
ba
bb
bc
C
ca

 

That is, I select unique Col2 value and other visuals get filtered. I've made this menu with such table mapping:

"table": {
  "rows": {
    "select": [{"for": {"in": "col1"}},{"for": {"in": "col2"}}]
  }
}

And now I'm stuck in interaction with other visuals because selections can be apply only for categorical view. Is there a way to use selections in my visual or I need to go to other data mapping? I just want to click one unique value and filter other visuals. Thanks.

 

P.S.: don't offer me to use visual gallery examples.

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@gendalf7771,

 

Since the HierarchySlicer provides similar functionality, you could download it and try to view its source code.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sam,

 

I've tried to use that code. But in Power BI visuals CLI tool there's no objects, used in HierarchySlicer: utility.SelectionManager, ITreeView, IInteractiveBehavior, ISelectionHandler, etc. Apparently that visual was developed by the web tool. And this is another one problem: code for web-tool is different from that is described in Power BI visuals CLI tool. Considering web-tool now is not recommended and not supported, code for it doesn't make sense.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.