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

Join 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.

Reply
nisha_deepak
Helper III
Helper III

special character showing issue while fetch from postgresql database to power bi

i am  creating a report in desktop using data taken from postgresql database.I use postgres odbc driver .Capture.PNG

while fetching data using select query i try like this.Capture1 (1).PNG

After loading data from db to power bi desktop some of the data is not correctly showing like in database.Some data is showing like special characters.But the problem is some of the same value having issues ...some of the same data is not having any issue.

MY database column is like this.

1.PNG

 

But same thing is showing differntly in powerbi

2.PNG

here 2 value in column is entirely different compare with data from database .These type of lot of data having issue.

Plse give some suggestions.

 

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @nisha_deepak 

Do you have to explicitly set the encoding to UTF-8?  Can you leave this out?

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @nisha_deepak 

Using Clean will remove non-printable characters so in this case that won't help as you can print â€ 

You can use Text.Select to leave you with only the characters you want.  Add a Custom Column in the query editor and use this line of code, wehre the characters you want to keep are in the List that forms the  function's 2nd parameter

 

Text.Select([item_name] , {"a".."z", "A".."Z", "0".."9", " ", "#", ";", "-"})

 

https://docs.microsoft.com/en-us/powerquery-m/text-select

text.select.png

text-select-text.png

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


mahoneypat
Microsoft Employee
Microsoft Employee

You can try the Clean option for that column on the tranform tab.  If that doesn't work, you can use Text.Select to keep only the text characters you want.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


I have a doubt that data  missing  issue is there,while fetching data from database to power bi.So, after getting data in power bi ,how can i get correct data by try the Clean option for that column on the tranform tab.Plse help me?

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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