Forum Discussion

Ashfaq's avatar
Ashfaq
Regular Visitor
7 years ago
Solved

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?  
  • v-yuta-msft's avatar
    7 years ago

    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