Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have 3 date columns, Order Start Date, Order End Date and Week (which is how the performance data is aggregated). Within the Query Editor, I can change Order Start Date, and Order End Date to a data type of Date. Then within Power BI, I change the format. No problems with these columns.
The "Week" column is being a little more stubborn. When I change the Data Type the column populates with Error (see below).
If I try to convert this in PowerBI, I receive an Error that says it can't convert the data type!
I have included a link to a sample dataset, in hopes someone can help me problem solve this.
https://www.dropbox.com/s/gbzdwo6qxxt026x/sample%20data.xlsx?dl=0
Thanks.
Solved! Go to Solution.
Hi @irnm8dn,
If I understand correctly, you want to set the data type of column [Week] to Date, and display date range in format '12/6/15 - 12/12/15', right? But this is not a supported date format, it will be considered as string. That is why you got the error when you attempt to convert it to date.
Below image shows all the date formats which are supported now:
Best regards,
Yuliana Gu
Hi @irnm8dn,
If I understand correctly, you want to set the data type of column [Week] to Date, and display date range in format '12/6/15 - 12/12/15', right? But this is not a supported date format, it will be considered as string. That is why you got the error when you attempt to convert it to date.
Below image shows all the date formats which are supported now:
Best regards,
Yuliana Gu
hi, do you need Week of the year ?
1, Split by delimiter Week (Use -)
2. The First Column transform to Date-Week-Week of Year.
Thanks for the feedback @Vvelarde.
I do not need the week of the year, only to use it as a time dimension for performance during that period of time.
If I split using the delimeter, I will lose my ability to dimensionalize the data by week range. Not sure what you mean in your second step.
Seems Power BI really struggles with "dates" and date transformaiton, no?
Please advise.
Your Column is two dates (Start of Week and End of Week) Right?
What is the result that you want to obtain.
I simply wanted to show the range in the visulaization, and have the correct format.
When following your instructions, it does format it as a date.
Your column look like this:
12/6/15 - 12/12/15
What is the format expected in the transform?
Same as what it looks like in the column, formatted as a date.
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |