Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

You can't create a relationship between these two columns...

So I get why this is happening even though they are the exact same numbers in both columns from both tables: There are duplicates in my CService table because since a company can have multiple...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Anonymous,

    My mistake, there is a syntax error in my original DAX. Please use DAX below instead, replace CBIZ with your own table.

    NewTable = 
    FILTER(
    DISTINCT(
    UNION(
    DISTINCT(CBIZ[CompanyID]),
    DISTINCT(CService[co])
    )
    ),
    NOT(ISBLANK(CBIZ[CompanyID]))
    )



    Regards,
    Lydia