Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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

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.



I hope this helps,
Richard

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

Proud to be a Super User!


View solution in original post

5 REPLIES 5
richbenmintz
Solution Sage
Solution Sage

Can you include the PBIX file?



I hope this helps,
Richard

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

Proud to be a Super User!


Anonymous
Not applicable

Here is the pbix file - PBix file

 

Bests,

 

Line

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.



I hope this helps,
Richard

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

Proud to be a Super User!


Anonymous
Not applicable

You are absolutly right. Thanks a lot ! 🙂

vanessafvg
Super User
Super User

is the iso_date field also a whole number?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.