Forum Discussion

aditya_ghui's avatar
aditya_ghui
New Member
1 year ago
Solved

Getting duplicate values in Power BI

Hello Team,    I am connecting to Azure SQL server from Power BI desktop and in SQL statement option I am using below query to get the data. I am getting duplicate values for PRODUCT_ID in Power B...
  • Ray_Minds's avatar
    1 year ago

    Hi aditya_ghui 

    Please Check for Hidden Characters:

    Even though you've used TRIM, there might be hidden characters or non-printing characters that are not visible.
    Ensure that there are no extra spaces or special characters in your PRODUCT_ID values.
    You can use LEN function in SQL to check the length of PRODUCT_ID and see if there are any discrepancies:

    SELECT distinct PRODUCT_ID, LEN(PRODUCT_ID) AS Length
    FROM [XXX-XX-XXXX].[PRODUCTS];




    If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.