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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ashfaq
Regular Visitor

Year Filter Not Working

Hello Experts,

 

I'm exploring power BI, I just encounter follower error on selectiong year Filter,

Any idea on how to resolve this?

 

Capture.PNG

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi Ashfaq,

 

You may have done some change in query editor, right? Text type can't be changed to date type directly so the error happens, as a workaround, you can create a custom column to convert text to date in query editor using function as below than use the custom column instead of original column in your visual:

Date.FromText(date as nullable text, optional culture as nullable text) as nullable date 

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Ashfaq,

 

You may have done some change in query editor, right? Text type can't be changed to date type directly so the error happens, as a workaround, you can create a custom column to convert text to date in query editor using function as below than use the custom column instead of original column in your visual:

Date.FromText(date as nullable text, optional culture as nullable text) as nullable date 

 

Regards,

Jimmy Tao

AlB
Community Champion
Community Champion

Hi @Ashfaq

It looks like an issue with data types mismatch. If you share your file it would be much easier for people to help

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.