Forum Discussion
Calendar use
avisingh hey, I'm using your ultimate calendar but I can't seem to be able to link the date column with my "dateCompleted" column to be able to use quarter, month and year filter. can you please assist. i changed my dateCompleted type from date/time to date. but nothing seems to be working. I'm also trying to change the type of month from text to date but powerBi keeps giving me errors.
Please note that I'm importing my data from bigquery as a direct query.
Thank,
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! 🙂
11 Replies
- JarroVGITResident Rockstar
What error message do you get when you try to create the relationship?
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! 🙂
- AnonymousNot applicable
I didn't get any error it just doesn't work when I use the filters. so so basically i created the relationship and then used the calendar table as a date filter, this is when it doesn't work.
Highlighted in blue are the filters taken from the calendar table and everything else comes from my other table.
Relationship is between "Date" and "DateCompleted"
thanks,
- JarroVGITResident Rockstar
Hmm I really need some more information. Would it be possible to share your PBIX? If you don't want to share it widely you can PM me the link and I will try and solve this for you.
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! 🙂
- AnonymousNot applicable
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.
- AnonymousNot 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
- AnonymousNot 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.