Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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.

 

 

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

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!