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

Duplicate rows when using date as columns in matrix

I have a bizzarre issue that I cannot for the life of me resolve.

I am merely trying to display sales, by state, using date buckets.  I have used the standard matrix chart for this.  The issue is that the rows for the states are duplicating for most of the states. It seems to be related to the fact that I have appended two tables together using the Append function.  If I filter on a field so that only data from one of the two tables would be available, then there is no issue. Also, it is only occurring when the "Order Date" field is used as a column.  The issue occurs when I use a date dimension table, or using the date in the actual tables.

 

bruceandersonBI_0-1646982790772.png

Interestingly I don't have the issue when the Order Date is used as a row.  Any assistance would be greatly appreciated!

bruceandersonBI_1-1646982807728.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bruceandersonBI , Does the state column has a sort order column, I doubt that it has more than one sort value for one value.

Or use clean and trim in power query and try again

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@bruceandersonBI , Does the state column has a sort order column, I doubt that it has more than one sort value for one value.

Or use clean and trim in power query and try again

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Many thanks for your reply.  It was the trim function that resolved it!  There must have been spaces after some of the values.  I didn't know of the trim or clean functions... I could have used them in the past on several occasions. I have always only been using replace.   Many thanks again!

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.