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
giorgilomidze
Resolver I
Resolver I

Error: Cannot convert value 'Oct' of type Text to type Date.

I am creating calculated column from "datetame" type  column and want to show only names of month, but i'm getting this error: Cannot convert value 'Oct' of type Text to type Date. 

Calculated Column = FORMAT(PRXGetFinishedRequestsView[REQUESTCREATETIME],"mmm")

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @giorgilomidze

 

Are you sure your REQUESTCREATETIME column is date time?  The error suggests it might be text already.

 

If it is text and only as values such as "OCT" then you can use the following calculation to convert

 

Calculated Column = FORMAT(DATEVALUE("1/" & PRXGetFinishedRequestsView[REQUESTCREATETIME]),"MMM")

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Employee
Employee

Hi @giorgilomidze

 

Are you sure your REQUESTCREATETIME column is date time?  The error suggests it might be text already.

 

If it is text and only as values such as "OCT" then you can use the following calculation to convert

 

Calculated Column = FORMAT(DATEVALUE("1/" & PRXGetFinishedRequestsView[REQUESTCREATETIME]),"MMM")

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

I am not sure if you saw my original reply............

 

So i have a report user in Germany. the parameter value is coming over as "okt" instead of "oct".

 

I'm wondering whether or not your solution will work in this case!

are you ready for this? we are in the US and we have a customer accessing a report in Germany and the parmeter is coming across as "Okt" instead of "Oct".  Will this solution work?

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.