cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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

Link to pbix file

 

 

RelationshipRelationshipfactInventoryTransactionsfactInventoryTransactionsdimDatedimDateBarchart and no valuesBarchart and no valuesBarchart and no value - Year filtered by 2016Barchart and no value - Year filtered by 2016Count of items show the date hierarchy correctCount 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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Supplier
Solution Supplier

Re: Issue with relationship between fact and datetable

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.

View solution in original post

5 REPLIES 5
Highlighted
Super User I
Super User I

Re: Issue with relationship between fact and datetable

is the iso_date field also a whole number?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Solution Supplier
Solution Supplier

Re: Issue with relationship between fact and datetable

Can you include the PBIX file?

Highlighted
Helper III
Helper III

Re: Issue with relationship between fact and datetable

Here is the pbix file - PBix file

 

Bests,

 

Line

Highlighted
Solution Supplier
Solution Supplier

Re: Issue with relationship between fact and datetable

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.

View solution in original post

Highlighted
Helper III
Helper III

Re: Issue with relationship between fact and datetable

You are absolutly right. Thanks a lot ! 🙂

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors