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 August 31st. Request your voucher.

Reply
TPearson
New Member

Need Help with a DAX CALCULATE Formula - it is returning wrong row count

I am attempting to count my orders in process.  I am using the below CALCULATE formula.  When I manually go to the Facts table and filter the columns as outlined below, I get an entirely different row count than what this formula is returning.  Does anyone know why?

 

Manual Filters applied: Status ID =3 AND CloseOutDate = BLANK   (returns 42 rows)

 

Below formula returns 9 rows in my visual.

 

InProcessCnt = CALCULATE(COUNTROWS(Facts), FILTER(Facts, Facts[status_id] = 3 && Facts[CloseOutDate] = BLANK()) )

 

I am a novice, mostly self taught, and an ops person - so the simpler the better please! 

2 REPLIES 2
dedelman_clng
Community Champion
Community Champion

Also in the meantime you can try

 

InProcessCnt = CALCULATE( COUNTROWS(Facts), Facts[status_id] = 3, Facts[CloseOutDate] = BLANK() ) 

 

(the FILTER is extraneous when using CALCULATE and not filtering on MIN/MAX etc)

 

David

dedelman_clng
Community Champion
Community Champion

Hi @TPearson - how are you displaying InProcessCnt ?  Sounds like there might be other filters in play. Can you share copy of your pbix with sensitive data removed (link from OneDrive, DropBox, Github, Google Drive, etc)

 

David

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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