Forum Discussion
2 Datasets - 1 Date Slicer - Relationship needed?
- 6 years ago
Be aware that when making this type of relationship you must always use on your visualization the column of the one side to get your results, further more when working with dates as a best practice the use of a date table is better because of the continuous dates.
Do you have a calendar table?
Hi Anonymous,
If your common value is a date you need to relate both tables based on a calendar table and then make a relationship between that table and the other two. However depending on how your model is setup you may need to create some additional dimension table to relate the tables in order to show the correct results.
Can you share a sample data and expected result?
When I create the One to Many relationship, the records from the Details start at 3/9/2020 and forward. I can't figure out why.
You can see the left table has more records than the right.
- MFelix6 years ago
Super User
Be aware that when making this type of relationship you must always use on your visualization the column of the one side to get your results, further more when working with dates as a best practice the use of a date table is better because of the continuous dates.
Do you have a calendar table?
- Anonymous6 years agoNot applicable
I had the tables in the relationships backwards. This is close but there are records in the Details table not being filtered by the selector.
- Anonymous6 years agoNot applicable
As soon as I added a Date table I lost records in the Details table:
Date = Calendar( Date(2019, 1, 1), Date(2025,12,31))The Details table has dates back to 1/1/2020 but with the join it will only show dates from 3/9/2020 forward- Anonymous6 years agoNot applicable