Forum Discussion

lbudack's avatar
lbudack
Advocate III
5 years ago
Solved

SQL Statement to DAX - JOIN & CASE

Is there a way to write this in DAX? I thought I knew DAX better than SQL, but I guess not. I've been all over these forums looking for solutions, but I can't get it to work the way it does in SQL.  ...
  • Icey's avatar
    Icey
    5 years ago

    Hi lbudack ,

     

    Create a calculated column like so:

    Prospect? = 
    IF (
        SUMX (
            'Project Table',
            FIND ( 'Org Table'[OrgID], 'Project Table'[OrgID],, 0 )
        ) > 0,
        1
    )

     

     

    Best regards

    Icey

     

    If this post helps,then consider Accepting it as the solution to help other members find it faster.