Hi there,
I'm looking DAX or MDX equivalent for something similar to the below SQL query.
Select * from OrderTable
where orderno in (100,200)
Currently I have a tabular model cube deployed.
DAX query
--Returns all the records and columns
Evaluate 'OrderTable'
--Returns only 2 records based on the condition
Evaluate (Filter('OrderTable','OrderTable'[orderno] = "100" || 'OrderTable'[orderno] = "200" ))
The above is hardcoded version. Any suggestions on how to make it dynamic? what if 10 orders separated with comma are to be searched via the website textbox.
Is there anything like that would just receive a comma seprated values
Evaluate (Filter('OrderTable','OrderTable'[orderno] = commaseperatedparameter ))
I'm open for MDX suggestions as well.
TIA.