Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I am getting bank statements, and I want to remove all spaces from the label column .... I tried TrimEnd,..
Text.TrimEnd([Libellé])
I tried ReplaceValue
Table.ReplaceValue(AjLibellé,""" ""","",Replacer.ReplaceText,{"Libellé"})
I cannot get rid of the spaces, however, once in Excel, the function replace "" by nothing, works correctly.
Attached is a Dropbox link of a folder that contains
https://www.dropbox.com/sh/s5my4tqfwlc3bpt/AAD9AHUu6rHyE_X_EgJrM82Xa?dl=0
An example of a recovered CSV file,
a CsvToXLViaPQ folder which contains the Excel file with the PQ request
The relevant query under development is called CC
Thank you in advance for any help you can give me
Philippe Muniesa
Solved! Go to Solution.
Hi @PhilippeMuniesa ,
Your M code should look like this:
Table.ReplaceValue(AjLibelle," ","",Replacer.ReplaceText,{"Libelle"})
Pete
Proud to be a Datanaut!
If you are trying to accomplish this, you need to use the syntax you see in the image
If you are trying to accomplish this, you need to use the syntax you see in the image
Hi @PhilippeMuniesa ,
Your M code should look like this:
Table.ReplaceValue(AjLibelle," ","",Replacer.ReplaceText,{"Libelle"})
Pete
Proud to be a Datanaut!
thank you,
it is indeed the double quote that causes the problem, however it is the interface of the powerquery editor of excel which offers this syntax.
I ended up bypassing the problem with Text.FromNumber (32),
thank you very much for your two answers
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |