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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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