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
hummingbird
Helper II
Helper II

Hide Client Names when Client Selected

Hi all, a very exciting question that has previously been discussed but I could not find a defined solution.

 

I have a relatively extensive table with client data that I want to visualise and compare each client side by side, here is a simplified snapshot:

 

NameValue
Albert232
Mark5224
Hannah245

 

Is there any method that will allow me to select the customer name on the slicer and it will hide the names of other customers, but the one(s) selected? For example, if Hannah is selected, the graph and visuals will look like this:

 

NameValue
Other Client232
Other Client5224
Hannah245

 

Thank you.

9 REPLIES 9
parry2k
Super User
Super User

@CoreyP Indeed this is a great solution but I wanted to avoid the measure in case this needs to be used in a matrix visual or some other places as a column and that was the reason I asked the number of unique clients to come up with a solution. I had a working copy based on the model (not measure) but waiting on the OP's reply.

 

Great solution though. Cheers!!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Oh, fascinating! I'd like to see what you came up with. I'm guessing it leverages What-If Parameters?

parry2k
Super User
Super User

@hummingbird what is the unique customers count? I'm trying to see what is feasible here.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k I have around 1k distinct customers that vary throughout months of the year. Ideally I only want to be able to select customers that have purchased in the given period - defined by the period slicer

@parry2k & @hummingbird,

 

Do you mean something like this? 

CoreyP_0-1701222613220.gif

 

I did this by creating a measure like so:

Selected Client = 
SWITCH(
    TRUE() ,
    AND( HASONEVALUE( Clients[Client] ) , SELECTEDVALUE( Clients[Client] ) = SELECTEDVALUE( ClientData[Name] ) ) , SELECTEDVALUE( ClientData[Name] ) ,
    AND( HASONEVALUE( Clients[Client] ) , SELECTEDVALUE( Clients[Client] ) <> SELECTEDVALUE( ClientData[Name] ) ) , "Other Client" ,
    SELECTEDVALUE( ClientData[Name] )
)

 

As it's using a measure to display the client's name ( an axis value ), the visual needs to know which client is being selected on the row. You can use an ID field to add the context needed by the visual without supplying a hard name value. Your slicer would then reference a table of client names that is disconnected from the model, i.e) no relationship to your fact table.

 

This is close; however,  unfortunately, does not provide the complete solution 

This is exactly what I am refering to, thank you. However, I cannot use this measure in the bar chart and when I select a name, the full list of customers (even with no data in the given period) is pulled up.

parry2k
Super User
Super User

@hummingbird are you going to slice the data by another dimension as well, or just customer selection is the requirement?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Potentially by other dimensions / columns in the table but there always will be a Client slicer that defines which names to show. If nothing selected then show all names.

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.

Top Solution Authors