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