Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
| Name | Value |
| Albert | 232 |
| Mark | 5224 |
| Hannah | 245 |
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:
| Name | Value |
| Other Client | 232 |
| Other Client | 5224 |
| Hannah | 245 |
Thank you.
@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?
@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
Do you mean something like this?
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.
@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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 155 | |
| 131 | |
| 115 | |
| 79 | |
| 54 |