Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
In my scrip I am using below method to create year and month for my table but now sure as why I am getting blank in years and month column while checking in data modeling.
Created_Date,
YEAR(Created_Date) as TYear,
MONTH(Created_Date) as TMonth,
Is there any idea? I did apply the same way before it worked always but not for now.
Try
YEAR(date(Created_Date)) as TYear,
MONTH(date(Created_Date)) as TMonth
If that doesn't work you may need to use date#() to define the format of your date field.
Maybe your created_date content have changed?
What happens if you do
Num(created_date) as numdate,
Dayname(created_date) as Dayname
Hey there,
This can happen for many reasons such as:
A workarround simple is to make the Created_Date in number value and then in date, only after that you can invoke the Year and Month functions. Try this:
Created_Date,
YEAR(date(num(Created_Date))) as TYear,
MONTH(date(num(Created_Date))) as TMonth,
Let me know if it worked.
Best regards,
MB
seems like some text values are encountered in your Date field. Can you take that date field in filter pan and see if any left aligned values?
Hi,
No success , Is there any other way around?
Hi,
Its not working , getting an error msg not found created date
Hi,
I tries this but no luck , is there any other way?
Hi Kush,
In a filter pane I put created date and hit done editing. When I clicked on filter all the dates are coming on left side (Just to clear my left side :-))
Hi Everyone,
Any suggestion on this please?
Thanks