Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table like this
| Field 1 | Field 2 | Field 3 |
| 10 | 10 | 30 |
| 30 | 30 | 10 |
| 10 | null | 30 |
| 10 | 30 | 10 |
| 30 | 30 | 30 |
And I would like to generate a new column that will count how many '30' exists in each row.
For this example, the result would be:
| Field 1 | Field 2 | Field 3 | Counter |
| 10 | 10 | 30 | 1 |
| 30 | 30 | 10 | 2 |
| 10 | null | 30 | 1 |
| 10 | 30 | 10 | 1 |
| 30 | 30 | 30 | 3 |
What is the best solution for this?
It will be easier to do this from DAX or by creating an advanced query.
Thank you!
Solved! Go to Solution.
try a calculated column
Counter= ([Field 1]=30)+([Field 2]=30)+([Field 3]=30)
try a calculated column
Counter= ([Field 1]=30)+([Field 2]=30)+([Field 3]=30)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |