Forum Discussion
Calendar use
- 6 years ago
Hi Anonymous ,
I see your date column has a format of 'yyyy-mm-dd HH:MM:SS UTC' and per my testing, that doesn't play well in PowerBI. What you can do is import it as text, create a new column based on that dateComplete column and removing the ' UTC' part of it, then change the type of the new column to DateTime.
Then create the relationship with the datetable, then drag the Date column from the datetable into your visual and that should work.
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Hi Anonymous ,
Please confirm the following points.
1# The data type of "dateCompleted" is Date and there is an active relationship between "dateCompleted" and calendar[date].
2# Slicers are based on calendar table and you can get filtered data through the slicers instead of having no data.
3# If the Card visuals are based on measures, please make sure the measures are correct.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hi,
I can confirm #1 and #3.
About #2 i'm not able to change type to date. whenever i try to do so it changes all the rows to 'Err'. if i use the filters everything will be blank as shown in the screenshots
- Anonymous6 years agoNot applicable
Hi Anonymous ,
Just like djerro123 said, Power BI couldn't resolve the values to dates if the format was incorrect.
For example, 10/1/2019 would be October 1 2019 , 1/10/2019 would be January 10 2019 and 25/12/2019 would throw an error if your Locale for import is set to English(United States).
It would be better if you could share some sample data about "dateCompleted" and calendar[date] to us.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hi
Anonymous JarroVGIT i changed the settings to English(Europe)
Here's a screenshot of the calendar and a screenshot of the datecompleted column from the data warehouse. still doesn't work.DateCompletedCalendar
- JarroVGIT6 years agoResident Rockstar
Hi Anonymous ,
I just put in a reply on your other topic, but I think it might has the same problem. The problem is the following: you are loading data in which you think is in date format but actually isn't. Therefor, PowerBI cannot resolve the values to dates and throws errors. Think of it like this:
Date 01/13/2019 is a perfect valid US notation. But in the Netherlands, this would resolve in an error because this means the first of the 13th month of 2019.
What you can do is two fold: change the locale for import in your settings to something that is corresponding with the datasource. See the following screenshot.
Then, you can change the type to date(time) in powerquery and try again.