Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

PowerBi Desktop => Unable to use wildcard character in Replace Values modal window

I'm unable to use wildcard characters when changing the values in a column.

Unable to add the screenshot from my local machine to describe the issue more properly (what does the Source text field mean in the pop up?). 

 

Steps to reproduce:

 

  1. Launch PowerBi Desktop (2.64.5285.741 64-bit (November 2018)
  2. Get you data (can be .csv or excel)
  3. Open Power Query Editor
  4. Click on Transform tab
  5. Click on Replace Values drop down
  6. Place  5/*/2018 *  into the Value To Find text field
  7. Place MAY-18 in Replace With text field
  8. Click on OK button
  9. Observe that no data change happens

 

Please advise if this is a bug or there is  a different syntax for using wildcards. 

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

You can write Power Query below: 

 

= Table.ReplaceValue(#"Changed Type",each [C1],each if Text.StartsWith([C1],"5/") and Text.EndsWith([C1],"/2018") then "MAY-18" else [C1],Replacer.ReplaceValue,{"C1"})

w4.PNG

 

You can refer to attached pbix file. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

You can write Power Query below: 

 

= Table.ReplaceValue(#"Changed Type",each [C1],each if Text.StartsWith([C1],"5/") and Text.EndsWith([C1],"/2018") then "MAY-18" else [C1],Replacer.ReplaceValue,{"C1"})

w4.PNG

 

You can refer to attached pbix file. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I can follow this answer to a certain extend but when I open the advanced editor in my sheet where am I suppose to add the 

replacement code and how did you get the C1 label to ID the column?

= Table.ReplaceValue(#"Changed Type",each [C1],each if Text.StartsWith([C1],"5/") and Text.EndsWith([C1],"/2018") then "MAY-18" else [C1],Replacer.ReplaceValue,{"C1"})

  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.