Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
How do I check for two columns in a single table to see if they match? I need to create a column labeled "Check" to find ID where type A maches type B. TIA
| ID | Type | Check |
| 1 | A | TRUE |
| 2 | A | TRUE |
| 3 | A | TRUE |
| 4 | A | TRUE |
| 5 | A | FALSE |
| 6 | A | FALSE |
| 1 | B | TRUE |
| 2 | B | TRUE |
| 3 | B | TRUE |
| 4 | B | TRUE |
Solved! Go to Solution.
@lpd82 , Try a new column like
new column =
var _id = [ID]
var _Ty = [Type]
var _1 = countx(filter(Table, [ID] = _id && [Type] <> _ty),[ID)
return
if(isblank(_1), False(), True())
@lpd82 , Try a new column like
new column =
var _id = [ID]
var _Ty = [Type]
var _1 = countx(filter(Table, [ID] = _id && [Type] <> _ty),[ID)
return
if(isblank(_1), False(), True())
Perfect! Thank you.
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!