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
bw70316
Helper V
Helper V

filter by count and year for a specific column

I am trying to create a dax statement that filters the team with 4 number of wins in the final round to declare them the champion. I created a calc column of this:

Finalists = IF('Database (2)'[Round] = "Final" && 'Database (2)'[Win] = 1, "win", "loss")

Then I created this table:

Champions.png

 

I want the teams with 4s next to them to be declare champions. So Filter the team where Win = 4 for Count of Champions

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @bw70316 ,

 

To create a measure as below.

 

Measure = 
VAR cham =
    CALCULATE (
        COUNTROWS ( 'Database (2)' ),
        FILTER ( 'Database (2)', 'Database (2)'[Finalists] = "win" )
    )
RETURN
    IF ( cham = 4, "Champions", BLANK () )

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @bw70316 ,

 

To create a measure as below.

 

Measure = 
VAR cham =
    CALCULATE (
        COUNTROWS ( 'Database (2)' ),
        FILTER ( 'Database (2)', 'Database (2)'[Finalists] = "win" )
    )
RETURN
    IF ( cham = 4, "Champions", BLANK () )

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thanks, it makes sense too. 

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