Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hey,
i have an problem to convert simple text to a date since today, and i dont know why. (it worked till yesterday)
i have the following rows / dax formula:
This is the row i need to convert. If i change the format, i get an error. (text to date not possible)
So, i used these formulas to extract part of the dates and put it together.
Jahr = PATHITEM(SUBSTITUTE(StandardVerkauf[Verkaufsvorgang.Vorgangsdatum];"-";"|");1)
Monat = PATHITEM(SUBSTITUTE(StandardVerkauf[Verkaufsvorgang.Vorgangsdatum];"-";"|");2)
Datum = StandardVerkauf[Monat] & "." & StandardVerkauf[Jahr]
Jahr = Year, Monat = Month, Datum = Date (translation)
This results in this
The row Datum is set to Date Format and it worked perfectly till today. When i now update / refreseh my dataset, i get the following error for the column Datum.
Translation: The Value "." of type text can not be converted to the type date.
Same if i try to convert only the year.
Datum = StandardVerkauf[Jahr]
Same error.
Can someone help me please? 🙂
Solved! Go to Solution.
Hi @DennisJung,
You can use power query date functions to split the date column, add a custom column to store them.
Sample:
#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Year", each Date.Year([Created])),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "YearMonth", each Date.ToText([Created],"yyyy.MM"))
Reference link:
Regards,
Xiaoxin Sheng
Hi @DennisJung,
You can use power query date functions to split the date column, add a custom column to store them.
Sample:
#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Year", each Date.Year([Created])),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "YearMonth", each Date.ToText([Created],"yyyy.MM"))
Reference link:
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |