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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have been trying to figure this out and have failed. I have tried New Column = Calculate('table1'[Column1], 'table1'[Column2] in {1}), but it only duplicated whats in Column 2. I basically just want to create a new column where it returns a 1 if any row >=1 for the same Column1 value.
| Column1 | Column2 | New Column |
| 11AA | 1 | 1 |
| 11AA | 2 | 1 |
| 11AA | 1 | 1 |
| 11AA | 0 | 1 |
| 11B2 | 0 | 0 |
| 11B2 | 0 | 0 |
| 2222 | 1 | 1 |
| 2222 | 0 | 1 |
| 3333 | 0 | 0 |
| 3333 | 0 | 0 |
| 4444 | 1 | 1 |
| 4444 | 3 | 1 |
Solved! Go to Solution.
You may create this column:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
You may create this column:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@rclay78 , Create a new column like
new column =
var _cnt = countx(filter(Table, [Column1] = earlier([Column1]) && [Column2]>=1), [Column1])
return
if(isblank([_cnt]),0,1)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 124 | |
| 116 | |
| 77 | |
| 54 |