Forum Discussion
0000/00/00 Date format error
- 8 years ago
I found how to fix the error.
First convert the Text form column into a Date Format. You'll see the error pop up. Now in Query Editor, go in the "Transform" ribbon and look for "Replace Value", click on the small down arrow besides it and choose "Replace Error". A small windown will pop out and you can input the value to replace the error. The value that will replace the error has to be the same Type as the values in that column.
- 8 years ago
Hi NaCl-y,
You also can replace it in the first place. Please refer to the following snapshot.
Best Regards,
Dale
Hi NaCl-y,
You can use in DAX the IF function combined with FORMAT to have your expected date.
Hope it helps.
I tried creating new columns using this code
LRPD_REAL = IF(SAP_Transaction_ZP26[LPRD] = "0000/00/00", BLANK(), SAP_Transaction_ZP26[LPRD])
and then try to convert the text of the new column into a Date, however the calculated column does not appear in the Query Editor.
- NaCl-y8 years agoFrequent Visitor
I found how to fix the error.
First convert the Text form column into a Date Format. You'll see the error pop up. Now in Query Editor, go in the "Transform" ribbon and look for "Replace Value", click on the small down arrow besides it and choose "Replace Error". A small windown will pop out and you can input the value to replace the error. The value that will replace the error has to be the same Type as the values in that column.
- v-jiascu-msft8 years agoMicrosoft Employee
Hi NaCl-y,
You also can replace it in the first place. Please refer to the following snapshot.
Best Regards,
Dale