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
Anonymous
Not applicable

Input and Output

Hello All,

 

I'm very new to PowerBi. I'm wondering if this is possible in PowerBI and if so, a point in the right direction.

 

Screenshot 2023-08-29 131500.png

 

I have a table with Unique IDs, Models, and Locations. I want the user to choose a single Unique ID and have the table output with all Unique IDs that have the same Model as the Unique ID chosen. My pseudo-code would look like this. 

 

NewColumn=If (model[Input]=model,True,False)

Then create a table based on this NewColumn. 

 

In excel I would do it like this =IF(CellOfTable=VLOOKUP(Input, TableRange, OutputColumn),CellOfTable,"") and remove blanks

Screenshot 2023-08-29 133453.png

Unfortunately, my data is actually much more complex, pulled from a SQL Server, and over 700,000 rows of data. Therefore I'd like to do it in PowerBI, if possible. I think SelectedValue may be used, but I'm not sure how to get the slicer or whatever as an input variable. I'm happy to learn DAX or pull Python out from my undergrad days, but just not sure where to start. 

 

Thanks for any help!

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous something similar was done in this video, check it out  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.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Please find attached my PBI file.

Ashish_Mathur_0-1693365254421.png

 


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

@Anonymous something similar was done in this video, check it out  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