Forum Discussion
Text won't turn to Date
- Anonymous6 years ago
I figured it out. I had to create an If statement to get rid of the 0s. Then I created another column with the following equation:
Column 2 = Date(LEFT(BOOJ30MF[Requested date],4),MID(BOOJ30MF[Requested date],5,2) ,RIGHT(BOOJ30MF[Requested date],2))
Anonymous
Ok I changed both columns to "whole number" then tried to create the measure but it won't find the columns I am trying to pull in.
Hi Anonymous ,
That's because you're creating a measure, please create a calculated column with below formula(just keep the data type of column BOOJRSDT and MMDD as Text) and set the date format for it in Column Tools ribbon.
Column = DATE(LEFT('BOOJ30MF'[BOOJRSDT],4),LEFT('BOOJ30MF'[MMDD],2),RIGHT('BOOJ30MF'[MMDD],2))Best Regards
Rena
- Anonymous6 years agoNot applicable
Anonymous
I did that and it still is giving me and error
- Anonymous6 years agoNot applicable
I think there is an issue because the date field I am pulling in is coming from a database. I am trying to find a workaround but have been unsuccessful with everything I try.
- Anonymous6 years agoNot applicable
I figured it out. I had to create an If statement to get rid of the 0s. Then I created another column with the following equation:
Column 2 = Date(LEFT(BOOJ30MF[Requested date],4),MID(BOOJ30MF[Requested date],5,2) ,RIGHT(BOOJ30MF[Requested date],2))