tsql - DAX/powerpivot equivalent to T-SQL where in -


i unable construct query equivalent t-sql below.

i working on our new analytics dashboard , have solved wanted, have stuck on 1 problem.

image table , t-sql query http://server.esterminal.cz/dax/all.png

table

id      productid   timeid  storeid price  797190  7946        267     73      100  797191  7946        269     73      101  797192  7946        270     73      102  797193  7946        271     73      104  797194  7946        271     74      105  797195  7947        271     74      200  797196  7947        271     73      202  797197  7947        271     75      203 

query

select *    productfact    productid in (select productid                         productfact                        storeid = 75) 

result

id      productid   timeid  storeid price  797195  7947        271     74      200  797196  7947        271     73      202  797197  7947        271     75      203 

i want show products on offer in 1 store , show details of other stores stock product.

i know have overlooked "big", after 6 hours of attempting find way, decided ask has more experience me.

thank help.

michal

i found solution work me.

evaluate filter( productfact, contains(filter(productfact, productfact[storeid]=75), productfact[productid], productfact[productid]) )


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -