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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bprokop
Frequent Visitor

Table Visualization Display All Customers In A State When A Single Slicer Value Selected

Hi,

 

I am trying to create a Table that maintains All Customers within the State when a Single Customer is selected in a Slicer.  See example below.  Below I have a SALES and CUSTOMER table and I wish to create the CUSTOMER STATE TABLE that will always display All Customers in the State.  Right now, I can either only show the select Customer Value in the table or I can use Format-->Edit Interaction to show ALL Customers.  Hope this makes sense.  Thanks in advance for any help.

 

SALES CUSTOMER
CustomerStateSales CustomerCustomer Name
1CA100000 1Brainy Smurf
2CA200000 2Papa Smurf
3CA300000 3Smurfette
4FL300000 4Handy Smurf
5FL400000 5Baker Smurf
6FL600000 6Jokey Smurf
7NY900000 7Azriel
8NY100000 8Gargamel
9TX800000 9Vanity Smurf
10TX600000 10Hefty Smurg
      
      
Customer Slicer4    
      
Table Visualization - I would like to create a Table that displays all Customer in the State of the Selected Customer in the Customer Slicer.  Example below:
      
STATE CUSTOMER TABLE   
Customer NameStateSales   
Handy SmurfFL300000   
Baker SmurfFL400000   
Jokey SmurfFL600000   
1 ACCEPTED SOLUTION

Hi,

I have solved a similar problem in the attached file.

Hope this helps.

Ashish_Mathur_0-1693365312891.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
ThxAlot
Super User
Super User

SMURF.pbix

 

Construct the CUSTOMER dimensional table this way,

ThxAlot_0-1692931004484.png

 

ThxAlot_1-1692931050579.png

 

 



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



I see how your solution works with the sample but I am struggling to integrate it into my actual data.  I have attached a link to the actual pbix used.  In the model, I have a Slicer for "Hospital".  I inserted a Table and tried to recreate the Measure used in your example but was unsuccessful.  Measure equivalents in attached model are: Hospital Name = Name, SALES Qty = State Rank Filter and Rank = SUM Sales.  With these calculation when I use the Slicer to filter by a Hospital, the Table will only display the MAX Hospital in the State.  How do I get ALL Hospitals in a State to display when a single Hospital is selected with the Data Set in the pbix attached.  Thanks for your help.

 

https://drive.google.com/file/d/16g6ooz88UbtQLdZFQvKkObLIUquuK9zN/view?usp=sharing 

Hi,

Please clarify the result that you want to see.  Let's say that you select Good Samaritan Hospital in the slicer.  What exact result do you want to see - show the result in a table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

If you select Good Samaritan Hospital and it is located in California, I want the Table to display all Hospitals with the State of California.  Hopefully, that makes sense.  

 

Brian

Hi,

I have solved a similar problem in the attached file.

Hope this helps.

Ashish_Mathur_0-1693365312891.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
parry2k
Super User
Super User

@bprokop check this video on my channel, addressing a similar question: How to override slicer selection to return all records | PeryTUS - Power BI How To - YouTube



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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors