Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am struggling with the relationship between my date calendar and a date field in a table. Both are set to DateTime. I am able to draw the relationship without error. It is not being picked up when I use my date calendar date functions on the visuals. What can I do to make this right?
* I have not used datetime fields before when relating tables so this is new to me.
Here are the screenshots of the data type in both tables. a screenshot of the relationship being drawn. screenshot of visual not working right due to relationship.
Solved! Go to Solution.
Hey,
using a calendar table is best practice 🙂
As you can see the date column from your calendar has a time part of 12:00 AM and the column from "fact table" has also a timestamp.
Create a new column in your fact table that just contains the date (data type date instead of date time, and relate the calendar table to this new column.
Problem solved 🙂
Regards,
Tom
Hey,
using a calendar table is best practice 🙂
As you can see the date column from your calendar has a time part of 12:00 AM and the column from "fact table" has also a timestamp.
Create a new column in your fact table that just contains the date (data type date instead of date time, and relate the calendar table to this new column.
Problem solved 🙂
Regards,
Tom
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |