Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Join multiple tables to date table

Hi all   I'm having trouble with table joins to a Date Table and wondered if anyone can assist. I need to use the Date Table to create filter slicers that will filter multiple table visualisations,...
  • Anonymous's avatar
    Anonymous
    7 years ago

    So the question that needs to be asked is what about the data inside the 2 other tables inbetween are causing you to lose rows.

     

    If you had a more simple structure of simply the Date table and the GL table, you might have very different results.  Since those other 2 tables are part of your structure, their anomolies compound.  You can't have the direct link, because then your model becomes ambigious  (as there are 2 different possible outcomes from a single date filter).

     

    For example, if you had a date of the 1st of January in your GL and Date table, but not within the Visit and SOP tables, then data for the 1st will not be shown from your GL table, as the other tables caused it to be filtered out.

     

    If that is your current problem, your inactive link you have created is your plan B.  Inside DAX you can use a formula called "Use Relationship" to force a particular measure to make a more specific calculation using your inactive relationship.  This video discusses the concept in a very easy to understand way:

     

    https://www.youtube.com/watch?v=2BxaUXlx3K4