Forum Discussion
SQL Statement to DAX - JOIN & CASE
- 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.
Thanks, TomMartens! I ended up getting a solution that doesn't involve doing a join or referencing a separate table. Your expression works, but it doesn't quite get me the answer I need since all rows show up as "Yes".
However, in case I come across this situation again, here's more info.
I needed to mark organizations who are or are not prospects by determining if they've ever been used on a project record.
Org Table:
| OrgID | OrganizationName | Prospect? |
| 1 | Company ABC | |
| 2 | Consultant ABC | |
| 3 | Company XYZ |
Project Table:
| ProjectNum | ProjectName | OrgID | OrganizationName |
| 123 | Project A | 1 | Company ABC |
| 324 | Project B | 5 | Company JKL |
| 568 | Project C | 2 | Consultant ABC |
- Icey5 years agoCommunity Support
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.