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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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