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
Syndicate_Admin
Administrator
Administrator

Show data when selecting an option

I want you to click on a combobox (Data Segmentation), to show me the selected data.

For example.

Dymension_0-1666742365038.png

In this image I have several comboboxes and when selecting a "client" that shows me the data of that client.

The only problem I have is that I already have the data in the table but I don't know if it can be "hidden" for as long as an option is selected.

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

According to your requirements description, my understanding is that you want to achieve that when you don't select the value of "Client" in the slicer of the report, you want to not display any value corresponding to the client or other values in the corresponding visual, right?

If that's the case, you can try my scheme to achieve this requirement, I made a simple example data based on your situation:

vyueyunzhmsft_0-1666753314889.png

(1)You can start by creating a separate table for the "Client" field placed in a slicer and ensuring that there is no table-to-table relationship between this table and your primary table:

vyueyunzhmsft_1-1666753337462.png

(2)Then you can write a measure for the corresponding value field placed in the visual like this:

Value_Slicer =

var _selectedvalue=SELECTCOLUMNS('Slicer',"1",'Slicer'[Client])

return

IF(ISFILTERED(Slicer[Client]),SUMX(FILTER('Table','Table'[Client] in _selectedvalue),'Table'[Value]),BLANK())

(3)Then you can go to the visual and replace the corresponding value field with the measure you just created, and your requirements are realized:

vyueyunzhmsft_2-1666753394758.png

Best Regards,

Aniya Zhang

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

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Is it mandatory that the tables are NOT related?

Hi, @Syndicate_Admin 

Yes, we can't create relationships between tables for this method.

 

Best Regards,

Aniya Zhang

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

v-yueyunzh-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

According to your requirements description, my understanding is that you want to achieve that when you don't select the value of "Client" in the slicer of the report, you want to not display any value corresponding to the client or other values in the corresponding visual, right?

If that's the case, you can try my scheme to achieve this requirement, I made a simple example data based on your situation:

vyueyunzhmsft_0-1666753314889.png

(1)You can start by creating a separate table for the "Client" field placed in a slicer and ensuring that there is no table-to-table relationship between this table and your primary table:

vyueyunzhmsft_1-1666753337462.png

(2)Then you can write a measure for the corresponding value field placed in the visual like this:

Value_Slicer =

var _selectedvalue=SELECTCOLUMNS('Slicer',"1",'Slicer'[Client])

return

IF(ISFILTERED(Slicer[Client]),SUMX(FILTER('Table','Table'[Client] in _selectedvalue),'Table'[Value]),BLANK())

(3)Then you can go to the visual and replace the corresponding value field with the measure you just created, and your requirements are realized:

vyueyunzhmsft_2-1666753394758.png

Best Regards,

Aniya Zhang

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

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.