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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
QRS_04
New Member

Need help-filtering by year

Hello, 

 

I need help filtering some data by year. The problem is that there isn't a date value in the data set I have, its just value columns with their year in the column heade name, i.e: 

 

2015 number of customers

2016 number of customers

2015 total sales

2016 total sales 

 

I need a way to filter by year, but when I add a filter to the report, it filters by the values (i.e. filters by sales $ or # of customers) since the only indication of year data is in the name of the columns. 

 

 

Thank you for your help!

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @QRS_04,

 

If I understand your sceanrio correctly that you have a column with the values like below and you need a year column to filter your data?

 

2015 number of customers

2016 number of customers

2015 total sales

2016 total sales 

 

If it is, you could get the year by spliting your raw column in Query Editor.

 

Untitled.png

 

Then you could change the year column to be date type.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @QRS_04,

 

If I understand your sceanrio correctly that you have a column with the values like below and you need a year column to filter your data?

 

2015 number of customers

2016 number of customers

2015 total sales

2016 total sales 

 

If it is, you could get the year by spliting your raw column in Query Editor.

 

Untitled.png

 

Then you could change the year column to be date type.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your help, Cherry!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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