Forum Discussion
Table Joins
- Anonymous7 years ago
I understand you are sure that the values in dim table is unique. Can you try create a new calculated table and try joining this with your fact table for testing purpose? ( Go to Modelling -> New Table-> Use this formula)
Table =
FILTER (
DISTINCT (
SELECTCOLUMNS ( CustomerTable, KeyColumn, CustomerTable[KeyColumn] )
),
ISBLANK ( CustomerTable[KeyColumn]) = FALSE ()
)Thanks
Raj
I understand you are sure that the values in dim table is unique. Can you try create a new calculated table and try joining this with your fact table for testing purpose? ( Go to Modelling -> New Table-> Use this formula)
Table =
FILTER (
DISTINCT (
SELECTCOLUMNS ( CustomerTable, KeyColumn, CustomerTable[KeyColumn] )
),
ISBLANK ( CustomerTable[KeyColumn]) = FALSE ()
)
Thanks
Raj
Rajen, This process worked, and also uncovered the underlying issue. I have many entries that are 'near' duplicates. Where the first character is a 'space' or not, and the rest is the same, example " 12345" and "12345". Now, even doing a 'trim' and 'remove duplicates' did not resolve, however your neat DAX trick below with creating new tables did. I was given the clue as to what the issue was, when I saw that these records were missing, so now only "12345" rather than both.
Thanks Much
Bob Gilbert