Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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())
Perfect! Thank you.
@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())
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |