Forum Discussion
Replicating Qlikview function in Power
- 3 years ago
In place of wildcard try to use FIND(), SEARCH(), CONTAINSSTRING(), CONTAINSSTRINGEXACT().
The Qlik function needs to be rewritten.
Hi jak8282 ,
Based on your description, I'd like to suggest you use FIND(), SEARCH(), CONTAINSSTRING(), CONTAINSSTRINGEXACT().
Here is the functions for text.
1. Text connection functions :
CONCATENATE(<text1>, <text2>)
CONCATENATEX(<table>, <expression>, [delimiter])
COMBINEVALUES(<delimiter>, <expression>, <expression>[, <expression>]…)
DISTINCT(SELECTCOLUMNS(DimDate, "Month", COMBINEVALUES(",", [MonthName], [CalendarYear])))
2. Text search functions :
FIND(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]]) SEARCH(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]]) CONTAINSSTRING(<within_text>, <find_text>) CONTAINSSTRINGEXACT(<within_text>, <find_text>)
3. Formatting text functions :
FIXED(<number>, <decimals>, <no_commas>) FORMAT(<value>, <format_string>)
4. Intercepting text functions :
LEFT(<text>, <num_chars>) RIGHT(<text>, <num_chars>) MID(<text>, <start_num>, <num_chars>)
5. Replace text :
REPLACE(<old_text>, <start_num>, <num_chars>, <new_text>) SUBSTITUTE(<text>, <old_text>, <new_text>, <instance_num>)
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
- jak82823 years ago
Helper III
Thanks Pratuashamal , can you use wildcards in those functions?
- pratyashasamal3 years ago
Memorable Member
In place of wildcard try to use FIND(), SEARCH(), CONTAINSSTRING(), CONTAINSSTRINGEXACT().
The Qlik function needs to be rewritten.