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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Removing duplicates after changing date column from long format to yyyy-mm

I have a column in PowerBI in which I want to display dates in yyyy-mm format, a goal that I have with this column is to create a filter that allows a user to select the year-month combination for which it wants to see information.

 

Whenever I have my data formatted in "long format", I neatly get one option per possible date in filters and such (even though multiple rows may contain the same date). So when I choose a certain date I might get to see multiple rows. This is exactly what I want:

 

pbihelp1.jpg

 

But when I change the "indeling" to yyyy-mm, suddenly Power BI will show multiple options for exactly the same yyyy-mm combinations. When I messed around with the filter, it seems that each unique row in my data now suddenly gets a seperate yyyy-mm option, despite being identical to others:

pbihelp2.jpg

 

I don't really understand why this would happen, at first I thought it was because the yyyy-mm would introduce duplicates, but these duplicates were already present in long format where everything worked fine.

 

Can someone help me make this column in yyyy-mm format, where I only have 1 option per "yyyy-mm" combination? So e.g. there should be one option 2015-01 that shows all rows with MonthYear = 2015-01. Thank you in advance for your time

1 ACCEPTED SOLUTION
HughLa
Resolver IV
Resolver IV

Hi @Anonymous 

 

It seems that you are only formatting the date column. Have you tried to create a new column that returns the Year - Month combo?

HughLa_0-1676545243275.png

 

Hope this helps you.

Hugh

View solution in original post

1 REPLY 1
HughLa
Resolver IV
Resolver IV

Hi @Anonymous 

 

It seems that you are only formatting the date column. Have you tried to create a new column that returns the Year - Month combo?

HughLa_0-1676545243275.png

 

Hope this helps you.

Hugh

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.