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
dolevh
Helper II
Helper II

SUMMARIZE with COUNTROWS and FILTERS

Hi All, 

I have this table (CusTable) : 

RecordID  Date  NewColumn
123  1/1/2022  1
123  2/1/2002  0
123  3/1/2022  0
123456  1/1/2022  1
123456  2/1/2002  0
123456  3/1/2022  0
123456  4/1/2022  0
123456789  1/1/2022  1
123456789  2/1/2002  0
234  1/1/2022  1
567  1/1/2022  1

 

I'm looking for dax that shows me if any RecordID has the num "0" so counting them but only one time. for example in my
table counting the num is "3" 

thanks all!

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@dolevh 
MEASURE = CALCULATE(DISTINCTCOUNT('CusTable'[RecordID]),'CusTable'[NewColumn] = 0)
 


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@dolevh 
MEASURE = CALCULATE(DISTINCTCOUNT('CusTable'[RecordID]),'CusTable'[NewColumn] = 0)
 


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Hi, 
it's working, Thanks!

SpartaBI
Community Champion
Community Champion

@dolevh where did you put that measure? (In the model table/ in a visual?)
Can you share a fake screenshot of the result you want to get?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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