Forum Discussion
jimpatel
3 years agoPost Patron
DAX formula
Hi. Thanks for looking at my post. I am having 2 tables named as table 1 and table 2 but not related to each other. What i am looking for DAX formula for "Table 1" column B as shown below...
- Anonymous3 years ago
Hi jimpatel ,
Please try this code to create a calculated column in Table 1. When you use this code, please make sure the data type of [True/False] is text.
True/False = VAR _List = CALCULATETABLE ( VALUES ( 'Table 2'[True/False] ), FILTER ( 'Table 2', 'Table 2'[Part number] = EARLIER ( 'Table 1'[Part number] ) ) ) RETURN IF ( "TRUE" IN _List, "TRUE", "FALSE" )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi jimpatel ,
Please try this code to create a calculated column in Table 1. When you use this code, please make sure the data type of [True/False] is text.
True/False =
VAR _List =
CALCULATETABLE (
VALUES ( 'Table 2'[True/False] ),
FILTER (
'Table 2',
'Table 2'[Part number] = EARLIER ( 'Table 1'[Part number] )
)
)
RETURN
IF ( "TRUE" IN _List, "TRUE", "FALSE" )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.