Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi all!!
I have a really strange case.
My datasource is Google Sheet with many data (like 1 mln) for multiple dates.
While loading it to Power BI I am geeting errors on Date fields.
Why is that? Because in one case data field in alligned to right and on the other to left.
Is this even possible to have this kind of error based on formating?
Alignment to the left indicates the data is text. Alignment to the right indicates the data is numeric or datetime. The date of 8th October likely has spaces preceeding or following it which leaves it being interpreted as text. The following will convert all rows to datetime. It works by
= Table.AddColumn(
#"Name of Previous Step",
"Datetime", each
if ( Type.Is( Value.Type([Raw Date]), DateTime.Type) )
then [Raw Date]
else DateTime.From( Text.Trim([Raw Date]) ),
type datetime)
Here is my Google Sheet,
and here is my result in Power Query (I am working in UK local so my date format is day, month, year).
Hi,
It may be some space issue. Try trim(inside the format) in the column.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 10 | |
| 7 | |
| 6 |