cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
baneworth
Helper II
Helper II

Qliksense Wildmatch -> Power BI DAX

Recently moved from Qlik to Power BI and very new to using DAX

 

What would be the euqivalent to the Wildmatch function (please refer to image)

- basically what i have to do is combining several values(usually its just one) and then renaming them

 

If there would be a better solution i am happy to learn

qlik product.JPG

 

 

Best regards

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

v-alq-msft
Community Support
Community Support

Hi, @baneworth 

 

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>) 

 

 

For further information, please refer to the official document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @baneworth 

 

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>) 

 

 

For further information, please refer to the official document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors