Forum Discussion

tejapowerbi123's avatar
3 years ago
Solved

Subtract two table with condition

Hello Community
I am trying to subtract the "No" column (Table 2) from to "No" column (Table 1) and want to display the result by the "Name" column.
I have tried using UNION and SUMMARIZEDCOLUMNS, but it is not showing me the correct result.
Can someone help me?

Table 1
NameNo
A1
A2
B3
B1
C2
C3
Table 2
NameNo
A2
B3
C4
A4
A2
A2
Expected Result
NameNo
A7
B-1
C-1

1 Reply

  • CNENFRNL's avatar
    CNENFRNL
    Community Champion

    Expanded table, bridge table or disconnected table are all methods to tackle such a simple question.