cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
bruceandersonBI
Frequent Visitor

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

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

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors