Forum Discussion
Loose my column dates when adding values or rows in matrix
- 4 years ago
This is the solution to this topic posted by TheoC
Okay, so I figured out what the cause is. The Date field in your Calendar table is fine. But the Date field in your Fact table is actually a DateTime field. You need to create a Date field on its own and then create a relationship between the two tables with the Date fields only
- 4 years ago
Hi ctedesco3307
Glad I could help with the "Okay, so I figured out what the cause is. The Date field in your Calendar table is fine. But the Date field in your Fact table is actually a DateTime field. You need to create a Date field on its own and then create a relationship between the two tables with the Date fields only "
In all honesty, I don't know the exact reason that the Date and Date/Time didn't work initially. It could have been for a variety of reasons but within this example, I am unsure.
All the best with your Power BI journey my friend.
Theo 🙂
Hi ctedesco3307
A couple of things just to double check:
- The relationship from the Date to Fact table is one to many (one from Date, many to Fact table).
- Ensure that your Date table has all of the dates required in it.
- On your visual, make sure the Week Numbers is from your Date table.
Hope this helps 🙂
- ctedesco33074 years ago
Resolver II
Hi TheoC - Thank you for the quick response, but all the things you mentioned are in tact.
- The relationship from the Date to Fact table is one to many (one from Date, many to Fact table). - it is -- please see image in post
- Ensure that your Date table has all of the dates required in it. - it does. It ha every day in the calendar year
- On your visual, make sure the Week Numbers is from your Date table. - It is -
Thank you for trying to help!
- TheoC4 years ago
Community Champion
- ctedesco33074 years ago
Resolver II
Hi TheoC Thank you for trying once again, but unfortunaley that is not it. The join between the two tables is between WOrKLOG_WORKLOG_Date and Date and they are both set as Date/Time. If one of those is showing as date for the column type it must have happened in the sample file creation. I did try changing them both to date to see if it made a difference and it did not. Thanks anyway