The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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