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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AlexJB
Frequent Visitor

Give two columns same name to be able to filter

Good day everyone,

 

I couldn't find an answer to the following question hopefully you guys are able to help me.

 

I have a table with the following sales data

product202101202102202103202201202202202203
1201023241520
2304040344040

 

As you can see some headers are related to the month in a certain year, so second column is januari 2021 after februari 2021 and so on. There are also colummns for januari 2022 and februari 2022.

Is there a possibility to make a measure to give these columns just the name 'januari' or 'februari'? I want this so I can place a filter in the report to only show data from januari, but then from 2021 and 2022. 

 

Hope you can help me!

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

The usual way of deaing with this is to Unpivot all the month columns.

You can then either make the single column a date column (by adding 01 for the day and making the datatype a date OR splitting the column into Year and Month columns) 

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

The usual way of deaing with this is to Unpivot all the month columns.

You can then either make the single column a date column (by adding 01 for the day and making the datatype a date OR splitting the column into Year and Month columns) 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors