Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have used the date table multiple times but I am getting stuck with one data set. I have double checked the date formats but nothing seems to work. What I want is for the dates from one table to line up with the dates from the date table.
Solved! Go to Solution.
If the data type of the OPEN_TIME column is date/time, it will never match a date in your date table even if the format is date. There are more digits there that you've simply hidden with the formatting. The data types should match. If you need to preserve the time value from OPEN_TIME make a new column that takes only the date value from OPEN_TIME and use that new column in the date table relationship.
Proud to be a Super User!
I've also had to go into power query to adjust the data type - just changing the date column from date/time to date in the format pane in power bi desktop did not do the trick. I had to go into power query and adjust the type there.
If the data type of the OPEN_TIME column is date/time, it will never match a date in your date table even if the format is date. There are more digits there that you've simply hidden with the formatting. The data types should match. If you need to preserve the time value from OPEN_TIME make a new column that takes only the date value from OPEN_TIME and use that new column in the date table relationship.
Proud to be a Super User!
Huge thanks for this... been banging my head for a while trying figure this one out 😄
Thanks sooo much... I would have never figured that out.
It sometimes helps to think of relationships as exact lookups. The relationship can be valid but if no exact match can be found it, the relationship won't actually do anything.
Proud to be a Super User!
I didn't realize that changing the format is just cosmetic and doesn't change the underlying data.
Me neither. I'm about to test this out and see if it works.
User | Count |
---|---|
79 | |
74 | |
44 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |