Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Using two lookup tables connected with the same fact table

Hi.

 

I have two lookup tables:

 

USER LOOKUP

user_id
1
2
3

 

DATE LOOKUP

date
1/1/2018
2/1/2018
3/1/2018

 

..connected to a fact table (1-to-many cardinality for both);

 

PROFILE FACT

user_iddateother
11/1/2018A
22/1/2018B
33/1/2018C

 

I'm using a date silcer synced across several pages. When I use the user_id (count of users) from the user lookup table and change the date range, the user count does not update. Obviously this is because the lookup table aren't connected but is there a workaround for that without using USERELASTIONSHIP? Do I have to use the user_id from the profile fact table in all my calculations? But since the user lookup is connected with other fact tables with a user_id, that would defeat the point of a user lookup table, right?

 

Thanks.  

  • Hi Anonymous ,

     

    In my opinion,you'd better use user_id from the profile fact table in all your calculations since it's the one-side in the relationship.And since it has a connection with user lookup table,I believe it wont defeat the point of the table.

    Check the reference below:

    https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

     

     

     

    Best Regards,
    Kelly

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

2 Replies

  • v-kelly-msft's avatar
    v-kelly-msft
    Community Support

    Hi Anonymous ,

     

    In my opinion,you'd better use user_id from the profile fact table in all your calculations since it's the one-side in the relationship.And since it has a connection with user lookup table,I believe it wont defeat the point of the table.

    Check the reference below:

    https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

     

     

     

    Best Regards,
    Kelly

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