Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone,
I'm working in a Power BI dashboard, I'm pulling the information from an Analysis Services Cube, I'm using the data of the selected fields into a Data Table visualization, until this, It's working perfectly. The request is that I need to show in the value of a CARD the total or the COUNT of cells that blank of a column that is being shown.
I have tried different Measures formulas but no luck until now. IWould appreciate a lot your help.
Thank you.
Solved! Go to Solution.
Hi @DataRodo ,
If the field is a text type,using below dax expression:
Measure = CALCULATE(COUNTROWS('DimGeography'),FILTER(ALL(DimGeography),'DimGeography'[City]=BLANK()))+0
If it's a whole number format,try below:
Measure = CALCULATE(COUNTROWS('DimGeography'),FILTER(ALL(DimGeography),Not(ISNUMBER('DimGeography'[City]))))+0
After checking,the above measures work fine here.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Hi @DataRodo ,
If the field is a text type,using below dax expression:
Measure = CALCULATE(COUNTROWS('DimGeography'),FILTER(ALL(DimGeography),'DimGeography'[City]=BLANK()))+0
If it's a whole number format,try below:
Measure = CALCULATE(COUNTROWS('DimGeography'),FILTER(ALL(DimGeography),Not(ISNUMBER('DimGeography'[City]))))+0
After checking,the above measures work fine here.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Hi @DataRodo
You can use COUNTBLANK(<column>) formula
https://docs.microsoft.com/en-us/dax/countblank-function-dax
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Actually that's the one that I was trring to use but for some reason the result is always: [ 1 ] or sometimes <blank>
How is your Model connecting to your Cubes? Live connection?
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
I think yes. The connection is happening to a connection to the server.
I am afraid it is the problem. check this out
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-analysis-services-tabular-data
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!