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.
I need a function to lookup a value from an another table. In this function i need to search for a part of string and give back a second column. At this moment i made a calculated column with all the different options, but the list is growing.
group =
if(SEARCH("*bike*",table[column],,0);"supllier x",
if(SEARCH("*car*",table[colum],,0),"supplier y",
"unknown"))
something like this:
table 1:
bike supllier x
car supllier y
table 2
bike_123 ===>> result supllier x
Maybe you're looking for the LOOKUPVALUE function https://msdn.microsoft.com/en-us/library/gg492170.aspx.
You might need either 1) to create a column in table 2 that has the same terms as table 1 (ie bike, car, etc) so that you can do the match or 2) write an expression that returns the string you want to search for - you're close but replace the output with the argument you're searching for ...
group = if(SEARCH("*bike*",table[column],,0);"bike", if(SEARCH("*car*",table[colum],,0),"car", "unknown"))
The lookupvalue has a part "search_columnName". This can't be an expression. I need a function that can search for * or % in the value
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |