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

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.

Reply
MelStaunton
Helper III
Helper III

Importing special characters in a csv file into Power BI desktop

Hi!

 

I am importing a csv file with special characters (ü, ä, ß) thru a dataflow into a Power BI desktop file. Unfortunately the special characters all get changed to the same symbol � in the dataflow file.

Is there any option to define these characters while importing? I couldn't find anything to set my delimiter either, but it coincidentally? works correctly.

 

Thanks,

Mel

1 ACCEPTED SOLUTION

Hi @MelStaunton  

you have to prevent the transformation to the symbol at the source (in the dataflow). This can be done by adjusting the encoding settings: 

 

image.png

 

If the dialogue shown above doesn't pop up in the dataflow, just import the file in PBI desktop and play around with the Encoding

codes until you find a fitting one.

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

6 REPLIES 6
Nathaniel_C
Super User
Super User

Hi @MelStaunton ,
Let us check with @ImkeF , the magician of m.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you!

 

While we are at it, I also noticed I have problems with numerical values with inconsistent decimal settings, whether it has 0,1, or 2 decimals always gets formatted from the right, regardsless of decimals.

 

BI: 

clip1.pngclip2.png

Hi @MelStaunton 

You have to change the locale for this: https://blog.crossjoin.co.uk/2015/05/25/working-with-international-date-and-number-formats-in-power-...

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Hi @ImkeF 

 

thank you, since I load in a dataflow I found the locale here and changed it to German (where the data is from). It then loads as text and I can replace commas with decimal points in Desktop.

Would you also be able to help on the various special characters being converted to the same symbol? Changing the locale didn't help with that.

clip3.png

 

Hi @MelStaunton  

you have to prevent the transformation to the symbol at the source (in the dataflow). This can be done by adjusting the encoding settings: 

 

image.png

 

If the dialogue shown above doesn't pop up in the dataflow, just import the file in PBI desktop and play around with the Encoding

codes until you find a fitting one.

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Perfect. Thank you so much! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.