Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Need help with Direct query tables and local tables when in limited relationship.

Hi All There are 3 tables 'Task' and 'Localextension' connected in direct query and 'Merge1' is the local table. Relation ship is as below. I joined using Id column which is common in all 3 tabl...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

    Please try the steps below to get it:

    1. Put the field [Need Help Recipients] of the table 'task' to replace the measure [NeeHelp_recp] on the visual

    2. Create a measure as below to judge if the related mails fulfill the conditions

    Flag =
    VAR _tab =
        CALCULATETABLE (
            VALUES ( task[Need Help Recipients] ),
            FILTER (
                task,
                task[Regarding] = Merge1[cmp_name.3]
                    && task[Need Help Section] = Merge1[cmp_relevantsectionidname]
            )
        )
    RETURN
        IF ( SELECTEDVALUE ( task[Need Help Recipients] ), 1, 0 )

    3. Apply a visual-level filter with the condition (Flag is 1) on the below visual

    Best regards