Forum Discussion

mq2020's avatar
mq2020
Icon for Helper III rankHelper III
6 years ago
Solved

Create calculated column from a calculation in a different table

Hi!   I have a table (Table 1) with organisations and another table (Table 2) with users per organisation and whether they are claimin or not. I want to add a calculated column in Table 1 (in blue...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi mq2020 ,

    Please try to create the following measure to get the flag of every organization with claim:

    Org Claiming YN = 
    VAR sumofClaimU =
        CALCULATE ( DISTINCTCOUNT ( 'User'[User] ), 'User'[User Claimed Y/N] = "y" )
    RETURN
        IF ( sumofClaimU > 0, "Y", "N" )

    Best Regards

    Rena