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
Anonymous
Not applicable

Count zero in multiple Columns & exclude blanks

Hi All

 

I have a situation here please see below screenshot

 

Annotation 2020-05-26 234324.png

 

Have created this table in power BI using sample data(link here). Now i want to create a measure which gives me distinct count of account number where "Sum of ABS YTD value is Zero in each of the year column (yellow highlighted one)" and "this should not count those cells where value is blank (red highlighted)". Any help? here is sample data link.

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Got it, kindly check my updated one:

4.PNG

Pbix attached.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

let me know if you'd like to get this one:

Measure = CALCULATE(DISTINCTCOUNT(Sheet1[Account Number]),FILTER(Sheet1,[ABS YTD Value]=0))

0.PNG

Pbix attached. 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi @v-diye-msft 

 

This is not correct count as per my requirement. See below table i created in the pbix you shared, its still counting the blank values as i have indicated lines in red -

 

Annotation 2020-05-27 114106.png

 

 

Requirement is to count only those account where value is "0" in all 3 years as highlighted in green above. If any year is having a blank value, it should not be counted.

Hi @Anonymous 

 

Got it, kindly check my updated one:

4.PNG

Pbix attached.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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