Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All,
I need to calculate what is the total no. of rows where PI is NOT Blank from the Planning table.
So I wrote the DAX
Solved! Go to Solution.
@Anonymous - Try:
PI Count = COUNTROWS(FILTER('Planning',[PI] <> BLANK()))
@Anonymous - Try:
PI Count = COUNTROWS(FILTER('Planning',[PI] <> BLANK()))
@Anonymous -
PI Count = IF(ISBLANK(MAX(Planning[PI])),Blank(),COUNT(Pl])).
So basically what this says is get the MAX of the column PI and check if it is BLANK. But, this is going across the entire table in context, not row by row (iterator) so it will likely never be blank because you are getting the MAX. Thus, you always get the count of the rows in the table in context. I would suspect that if you used MIN you would end up always getting BLANK since the mininum value in that column is probably BLANK.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.