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
fabio7xavier
Frequent Visitor

New column based on multiple column values

I have a table like this

Field 1Field 2Field 3
101030
303010
10null30
103010
303030

 

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 1Field 2Field 3Counter
1010301
3030102
10null301
1030101
3030303

 

What is the best solution for this?
It will be easier to do this from DAX or by creating an advanced query.

 

Thank you!

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @fabio7xavier 

try a calculated column

Counter= ([Field 1]=30)+([Field 2]=30)+([Field 3]=30)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

Hi @fabio7xavier 

try a calculated column

Counter= ([Field 1]=30)+([Field 2]=30)+([Field 3]=30)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.