Forum Discussion
Help with multiple value search (array or table) with direct query
- 4 years ago
Hi, tosho9
I don't know this function can't be used in DQ column, but you can try to use measure to display results in table visual.
Like this:
Measure 2 = CALCULATE ( MAX( 'Table'[Search tems table] ), FILTER ( ALL ( 'Table' ), CONTAINSSTRING (max('Table (2)'[Table 2]), [Search tems table]) ) )Best Regards,
Community Support Team _ Janey
Hi, tosho9
You can create a column.
Like this:
Column = CALCULATE (
MAX( 'Table'[Search tems table] ),
FILTER (
ALL ( 'Table' ),
CONTAINSSTRING ('Table (2)'[Table 2], [Search tems table])
)
)
CONTAINSSTRING function (DAX) - DAX | Microsoft Docs
Below is my sample.
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
- tosho94 years agoFrequent Visitor
Thank you very much!
Unfortunately I get the error, that the function calculate cannot be used in direct query.
Do you have any Idea how I could do the task with direct query?
- v-janeyg-msft4 years agoCommunity Support
Hi, tosho9
I don't know this function can't be used in DQ column, but you can try to use measure to display results in table visual.
Like this:
Measure 2 = CALCULATE ( MAX( 'Table'[Search tems table] ), FILTER ( ALL ( 'Table' ), CONTAINSSTRING (max('Table (2)'[Table 2]), [Search tems table]) ) )Best Regards,
Community Support Team _ Janey