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

How to count 2 different values within a column

Hi,

 

I am trying to write a DAX formula to count the number of 2 different values in a column.

 

I want to obtain a count of "Responsible Team"- Team 1 , that have had  "Day Open Grouped"- Between 35 Days and 1 year, and Over 1 Year.

 

So in this instance , the count would be 9. (8= Between 35 Days and 1 year, 1= Over 1 Year)

 

 

Responsible Team       Days Open Grouped

Team 1Less than 35 days
Team 1Between 35 Days and 1 year
Team 1Between 35 Days and 1 year
Team 1Less than 35 days
Team 1Between 35 Days and 1 year
Team 1Between 35 Days and 1 year
Team 1Over 1 year
Team 1Less than 35 days
Team 1Between 35 Days and 1 year
Team 1Between 35 Days and 1 year
Team 1Between 35 Days and 1 year
Team 1Between 35 Days and 1 year

 

 

Thanks, DL

1 ACCEPTED SOLUTION
SteveCampbell
Memorable Member
Memorable Member

Hello,

 

You can try:

 

Count Measure = 

CALCULATE(
    COUNTROWS(Table1)
    ,Table1[Responsible Team]="Team 1"
    ,Table1[Days Open Grouped] in {"Between 35 Days and 1 year", "Over 1 year" }
)

and change Table1 to your table name.



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



View solution in original post

2 REPLIES 2
SteveCampbell
Memorable Member
Memorable Member

Hello,

 

You can try:

 

Count Measure = 

CALCULATE(
    COUNTROWS(Table1)
    ,Table1[Responsible Team]="Team 1"
    ,Table1[Days Open Grouped] in {"Between 35 Days and 1 year", "Over 1 year" }
)

and change Table1 to your table name.



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Thank you- it worked!

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