Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
85 | |
67 | |
52 | |
31 |
User | Count |
---|---|
124 | |
114 | |
74 | |
65 | |
46 |