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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
datapal04
Helper I
Helper I

List all Values Within a Column that Belong to a Value in Another Column

I work for a transit agency and I'm looking to get the share of ridership for a station relative to the corridor it belongs to.

 

I have 4 columns: ori_station, des_station, corridor, ridership. Multiple ori_station belong to a Corridor, and there are multiple Corridors.

My report page has a slicer based on ori_station so that the user can select a station. I want bar chart that will list all ori_station that belong to the Corridor of the user-selected ori_station. The bar chart should also include the ridership # of each ori_station.

There is also an ori_station that appears in all Corridors and I'd like to not include this specific ori_station.

 

How can I achieve this?

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached PBI file.

Hope this helps.


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

I tried doing the same procedure you did by creating a seperate table for ori_station and using that for the slicer selection. While also having MAX function for Corridor... but this still does not work 😞

Hi @datapal04 

Thank you for reaching out to the Microsoft Fabric Forum Community.
Can you please share sample data, so we can look into it & will try to provide the solution.

Thanks.

Hi @datapal04 

Thank you for reaching out to the Microsoft Fabric Forum Community.

If you can share some sample data, we'll take a closer look and suggest a resolution.
Thanks.



 

Hi @datapal04 
I hope everything is going well on your side. We haven't received a response from you yet. If the issue still persists, please share the sample data. If you have any other concerns, feel free to reach out to the community.

parry2k
Super User
Super User

@datapal04 this is something I showed in this video, take a look and tweak the solution as you see fit, it will get you started.

 

How to override slicer selection to return all records | PeryTUS - Power BI How To



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.

Thanks for this. But I'm still confused on how this will work because I need the ori_stations split so that I can calculate ridership for each.

Helpful resources

Announcements
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.