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
bcbuckley13
Helper III
Helper III

How to create column or new table to show list of stores with 2 or more people with badge?

Hello and TIA!

 

I track users that have received a badge by completing learning. Each store is required to have atleast 2 or more people that have received a specific badge. (there are two different badges, but I need to track the Champions badge).

 

How could I create a new table/column to basically say "Yes" this store has 2+ people that have received this badge?

 

https://www.dropbox.com/s/j2s9ww5my4ry3pc/Badges_TEST.pbix?dl=0

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Here is a calculated column:

 

 

TwoPlus = 
var c = CALCULATE(COUNTROWS('Badge Report_test data'),ALLEXCEPT('Badge Report_test data','Badge Report_test data'[Store ID]),'Badge Report_test data'[Badge Name]="PH Express Champion")
return if(c>1,"yes","no")

 

 

your sample data only had one store ID so you may want to validate that.

 

 

View solution in original post

lbendlin
Super User
Super User

it's a custom column in DAX, not in Power Query

View solution in original post

8 REPLIES 8
lbendlin
Super User
Super User

TwoPlus = 
var c = CALCULATE(COUNTROWS('Badge Report_test data'),ALLEXCEPT('Badge Report_test data','Badge Report_test data'[Store ID]),'Badge Report_test data'[Badge Name]="PH Express Champion")
return if(c>1,1,0)

 

Do a sum, not a count.

bcbuckley13
Helper III
Helper III

@lbendlin  Is there a way to get a count of "Yes" from that column that you created? I've tried all Count measures and none of them work.

 

lbendlin
Super User
Super User

it's a custom column in DAX, not in Power Query

You Rock!!! Thanks.

lbendlin
Super User
Super User

Here is a calculated column:

 

 

TwoPlus = 
var c = CALCULATE(COUNTROWS('Badge Report_test data'),ALLEXCEPT('Badge Report_test data','Badge Report_test data'[Store ID]),'Badge Report_test data'[Badge Name]="PH Express Champion")
return if(c>1,"yes","no")

 

 

your sample data only had one store ID so you may want to validate that.

 

 

@lbendlin  I'm getting this error.

bcbuckley13_0-1614287765579.png

 

lbendlin
Super User
Super User

Please provide sample data in usable format (not as a picture) and show the expected outcome.

@lbendlinI've added a sample file in Dropbox. My goal is to be able to see a list of stores that have at least 2 people that have received the Champion badge. This could be in the form of just highlighting these stores.

 

https://www.dropbox.com/s/j2s9ww5my4ry3pc/Badges_TEST.pbix?dl=0

 

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.

Top Solution Authors