Forum Discussion

wpf_'s avatar
wpf_
Icon for Post Prodigy rankPost Prodigy
4 years ago
Solved

How do you filter one column from one table = to another column from another table using slicers?

I am trying to recreate a query from sql using the slicers.  I am simplifying here but basically the query is:

"Select column1, column2 etc....

from table1, table2

and table1_object = table2_code

 

There are others but I need to get over this hurdle first.  Not sure if I need to join the tables first or can this be done without joinging or merging.  Hope someone can help.  Thx

3 Replies

  • wpf_'s avatar
    wpf_
    Icon for Post Prodigy rankPost Prodigy

    amitchandak 

     

    Can I join it in dax using calculatetable or something similar instead of doing it in power query?  I would like to keep the tables the way it is because I have other queries.  

     

    Also how can I accomplish this query in power bi?

     

    "Select column1, column2 etc....

    from table1, table2

    and table1_object = table2_code

    ....

    ....

    and table1_evtcode not in (select nvl(table3_prvcode,'000000') from table3 where table3_prvvalue = 'OUT OF SERVICE')

     

     

    Do i need to join all 3 tables to accomplish this?