Forum Discussion
o59393
6 years agoPost Prodigy
Date relationship problem
hi all I have 2 tables, both contain a day by dat date column in yyyy-mm-dd format. There is a code asociated with each of the days. Code SP/B-0144.11 starts on 2/15/2019, while SP/B-0171.00 ...
- 6 years ago
Get rid of the many-to-many, they are evil, make things not work properly and are almost always avoidable. Implement a bridge table of unique key values.
Greg_Deckler
6 years agoCommunity Champion
Bridge Table =
DISTINCT(
UNION(
SELECTCOLUMNS('Query1',"Merged",[Merged]),
SELECTCOLUMNS('Formulas',"Merged",[Merged])
)
)
Zero maintenance required.
o59393
6 years agoPost Prodigy
- Greg_Deckler6 years agoCommunity Champion
Try making the relationships Both direction
- o593936 years agoPost Prodigy
it's not showing left table and right table will not show only 2019.
Thanks again!
- Greg_Deckler6 years agoCommunity Champion
OK, let's back up, what are we trying to do here overall? Take a look at what I did with your date table (Table) and the Model. Use your dimension tables like your calendar table and bridge table to affect both of your fact tables.
Attached below.