Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Issue -
I am unable to store or capture the text that was entered in the MS Text Filter. This does not work - @KeywordSearchView = SELECTEDVALUE('A'[SearchColumn]).
MS Text Filter only supports 1 field. We can only use MS visuals at our organization.
My report requirement - have a text search box the user can enter that will search multiple columns in my table, and show a table visual of what column matched, and what the text is in that column.
As a workaround, I concatenated 2 fields , SearchColumn since the MS Text filter only allows 1 field for the search.
I am using MS Text filter to search a concatenated column named 'SearchColumn' in Table A.
I have a measure: @KeywordSearchView = SELECTEDVALUE('A'[SearchColumn])
If user types 'Nurse', and I have a card visual for @KeywordSearchView , the value is Blank.
The MSText filter is successful in showing results from SearchColumn in a tablevisual that match text entered. But I cannot create a table visual with the 'IF_View_Worked' measure to see which specific column matched (ColumnA or ColumnB & their associated text).
My table A has:
My Environment is Direct Query Mode which limits some of the DAX commands.
Any help is appreciated.
@MBethK SELECTEDVALUE won't work because it needs a single value to be returned. You could do something like DISTINCT('A'[SearchColumn]) and then use the IN operator for example.
Thank you @Greg_Deckler regarding my use of SELECTEDVALUE.
I was incorrectly trying to use SELECTEDVALUE to capture what text was entered in the MS filter so that I determine if the text matched ColumnX and/or ColumnY, which were concatenated in 'A'[SearchColumn].
ColumnA | ColumnB | SearchColumn (concatenated ColumnA & ColumnB) |
Greenhouse | Nursery, Horticulture, Landscape | Greenhouse - Nursery, Horticulture, Landscape |
Nurse | Profession requires University | Nurse - Profession requires University |
Nurse Aides | Licensed Practical Nurses | Nurse Aides - Licensed Practical Nurses |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
82 | |
71 | |
64 |
User | Count |
---|---|
115 | |
105 | |
95 | |
79 | |
72 |