Forum Discussion
Issue with relationship between fact and datetable
Hi all,
I am quite experienced with SSAS and Power BI, but I have an issue with my date table, which was supposed to be straight forward.
I have 5 dimensions and 2 facts. All the relationships are set up using surrogate key. The data type for the surrogate key is "whole number". The cross filter direction is set to "single".
However my relationship to my calendar dimension / date dimension seems not to work. However, all other dimensions work as expected.
What have I done wrong - can somebody help me?
Link to the pbix file: https://www.dropbox.com/s/kca436awggmf0l6/InventoryPBIComm.pbix?dl=0
RelationshipfactInventoryTransactionsdimDateBarchart and no valuesBarchart and no value - Year filtered by 2016Count of items show the date hierarchy correct
I know there is no relationship between my item dimension and my date dimension. ´:-)
Please help me someone.
Have a look at your CalendarId column in the factInventorySnapshop View, they are not integer representations of dates, the Month portion is always 00, the join is correct however the data on the many side of the join does not match anything on the 1 side.
5 Replies
- vanessafvg
Community Champion
is the iso_date field also a whole number?
- richbenmintz
Resident Rockstar
Can you include the PBIX file?
- AnonymousNot applicable
- richbenmintz
Resident Rockstar
Have a look at your CalendarId column in the factInventorySnapshop View, they are not integer representations of dates, the Month portion is always 00, the join is correct however the data on the many side of the join does not match anything on the 1 side.