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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
HelloTheSun
Frequent Visitor

PowerBI show duplicate value in visualization page, although raw data don't have any duplicate

I would like to know why show duplicate "Region" name in Table or Matrix visualizations.

HelloTheSun_3-1738567890689.png

Although raw data don't have any duplicate name of "Region" 

HelloTheSun_2-1738567882922.png

 

Please help me to solve this issue.

 

Thank you

2 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @HelloTheSun  - Even if "Region1" appears once in your reference table, it may be associated with multiple records in another table/values in same. thats the reason you are seeing in table view with unique. but when you are trying to add the field in visual level using table or matrix you can get duplicates only by adding other fields in same table.

Try using a Table visual instead of Matrix, or check if removing numerical columns affects duplication.

 

Hope this helps.





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

Proud to be a Super User!





View solution in original post

FarhanJeelani
Super User
Super User

Hi @HelloTheSun,

Can yopu please share your pbix file?? For now please check below points.

Possible Causes and Solutions

1. Duplicate Values in Combination with Other Columns

  • If the Table or Matrix visual includes additional fields (e.g., Head Zone  or Zone Manager), Power BI may display multiple rows for the same Regional_Code because the combinations of these fields are unique.

Solution:

  • Check the fields added to the visual. Remove other columns that might be causing the split by creating unique rows for each Regional_Code.

2. Hidden Differences in Regional_Code

  • The values might have invisible differences (e.g., extra spaces, case sensitivity, or special characters).

Solution:

  • Clean the column using Power Query:
    1. Go to Transform Data > Power Query Editor.
    2. Select the Regional_Code column.
    3. Apply these transformations:
      • Trim: Removes leading/trailing spaces.
      • Clean: Removes non-printable characters.
      • Format All to Lowercase/Uppercase: Standardizes the case.

Please mark this as solution if it helps you. Appreciate Kudos.

View solution in original post

6 REPLIES 6
HelloTheSun
Frequent Visitor

Thank you very much for your reply

 

I found the root cause because I sort this field from another column and this column it not uniques.

GiuseppeMR
Frequent Visitor

Hi,

A possibile cause could be the presece of a custom sorting.

Have you set up some sorting on this visual ?

Ashish_Mathur
Super User
Super User

Hi,

What happens when you drag a simple count or sum measure to the visual?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-junyant-msft
Community Support
Community Support

Hi @HelloTheSun ,

Thanks for both of FarhanJeelani's and rajendraongole1's replies!
And @HelloTheSun , please check whether their replies will help you solve your problem? If solved please accept the reply in this post which you think is helpful as a solution to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,
Dino Tao

FarhanJeelani
Super User
Super User

Hi @HelloTheSun,

Can yopu please share your pbix file?? For now please check below points.

Possible Causes and Solutions

1. Duplicate Values in Combination with Other Columns

  • If the Table or Matrix visual includes additional fields (e.g., Head Zone  or Zone Manager), Power BI may display multiple rows for the same Regional_Code because the combinations of these fields are unique.

Solution:

  • Check the fields added to the visual. Remove other columns that might be causing the split by creating unique rows for each Regional_Code.

2. Hidden Differences in Regional_Code

  • The values might have invisible differences (e.g., extra spaces, case sensitivity, or special characters).

Solution:

  • Clean the column using Power Query:
    1. Go to Transform Data > Power Query Editor.
    2. Select the Regional_Code column.
    3. Apply these transformations:
      • Trim: Removes leading/trailing spaces.
      • Clean: Removes non-printable characters.
      • Format All to Lowercase/Uppercase: Standardizes the case.

Please mark this as solution if it helps you. Appreciate Kudos.

rajendraongole1
Super User
Super User

Hi @HelloTheSun  - Even if "Region1" appears once in your reference table, it may be associated with multiple records in another table/values in same. thats the reason you are seeing in table view with unique. but when you are trying to add the field in visual level using table or matrix you can get duplicates only by adding other fields in same table.

Try using a Table visual instead of Matrix, or check if removing numerical columns affects duplication.

 

Hope this helps.





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

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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