Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
learner03
Post Partisan
Post Partisan

COUNT formula to include BLANK

I have this formula for COUNT-

Count = VAR T1=ADDCOLUMNS(VALUES(ULDs[Location]),"sum",[SUM TOTAL QTY])
RETURN
COUNTROWS(T1)-COUNTROWS(FILTER(T1,[sum]<>0))
I want to edit this formula to include BLANK rows as well in the last part of formula where it is COUNTROWS(T1)-COUNTROWS(FILTER(T1,[sum]<>0)).
 
1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @learner03 

 

Try it

Count = 
VAR T1=ADDCOLUMNS(VALUES(ULDs[Location]),"sum",[SUM TOTAL QTY])
RETURN
COUNTROWS(FILTER(T1,[sum]<>0 || ISBLANK([sum]))

View solution in original post

2 REPLIES 2
Vera_33
Resident Rockstar
Resident Rockstar

Hi @learner03 

 

Try it

Count = 
VAR T1=ADDCOLUMNS(VALUES(ULDs[Location]),"sum",[SUM TOTAL QTY])
RETURN
COUNTROWS(FILTER(T1,[sum]<>0 || ISBLANK([sum]))
ryan_mayu
Super User
Super User

@learner03 

could you pls provide the sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.