Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

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 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

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

CNENFRNL_0-1665935625027.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

1 REPLY 1
CNENFRNL
Community Champion
Community Champion

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

CNENFRNL_0-1665935625027.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors