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
Archana007
New Member

Countrows not working as expected

Hi,

 

I'm creating two measure on the same column which has only two values 0 or 1 for all rows.

 

Measure 1:

COUNTROWS( filter('Audit plan 2024','Audit plan 2024'[AuditCount] = 0)) --Returns the count
 
Measure 2:
COUNTROWS( filter('Audit plan 2024','Audit plan 2024'[AuditCount] = 1)) doesn't return the count.
 
Archana007_0-1713950410922.png

I'm using PowerBI desktop.

Does this have anything to do with Liscensing?

 

I'm getting out put in dax query:

Archana007_1-1713950548716.png

Please share your thoughts. Thanks in advance.

 

Thanks,

Archana

1 ACCEPTED SOLUTION
Archana007
New Member

Ah.. this worked

CALCULATE(COUNTROWS('Audit plan 2024'), 'Audit plan 2024'[AuditCount]=1)

View solution in original post

2 REPLIES 2
Archana007
New Member

Ah.. this worked

CALCULATE(COUNTROWS('Audit plan 2024'), 'Audit plan 2024'[AuditCount]=1)
Anonymous
Not applicable

@Archana007 Glad you have solved it! You can accept your reply as solution to close this thread. Thank you. 

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