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!View all the Fabric Data Days sessions on demand. View schedule
Hello all,
If I make a new messure I create a table to remove the outcome (blank) how should I do that?
I tried with:
No Blanc =
IF ( ISBLANK ( COUNTA('Table'[Sales] ) ), 0, COUNTA('Table'[Sales] ) )and with
No Blanc =
IF ( ISBLANK ( SUM ( 'Table'[Sales] ) ), 0, SUM ( 'Table'[Sales] ) )
But the problem is that I don't have the option's sum and count anymore.
How can I best approach this to display in a card visual the number of a column and also the number of items in a column?
Solved! Go to Solution.
I found this formule thats works fine for me.
LegeRegels = CALCULATE(COUNTROWS('ExportFile'),FILTER(ExportFile,'ExportFile'[Remark] = BLANK()))+0
I found this formule thats works fine for me.
LegeRegels = CALCULATE(COUNTROWS('ExportFile'),FILTER(ExportFile,'ExportFile'[Remark] = BLANK()))+0
FYI, this calculates the number of rows where Remark is blank.
@v-jingzhang @Ashish_Mathur @AlexisOlson
Thanks all for the response but i don`t understand what i mus do with the formules you given (Sorry)
This is what i have. Must i make a new messure with the given formule en that is then what i set in 'Fields' or is the formule for insert elsewhere in ' count of stock' ?
Create new measure(s). These will then show up in the Fields pane and you can drag them into the Visualizations pane Fields area instead of the Stock column.
It looks like there are no rows where Stock is not blank, so it's returning a blank result.
The simplest fix is probably to add " + 0" to the end of your measure definition since blank + 0 returns 0.
oke now i have a zero as result with this measure
but now, how do i get that in here when i wil see the result of the stock?
The whole point of writing the measure is to use instead of the column...
If you want the sum, use a summing measure. If you want a count, use a counting measure. Defining new measures will never change how using a column works (i.e. implicit measures).
Hi @Frixel
You can also add +0 at the end of SUM or COUNTA. This will turn blank to 0.
No Blanc = COUNTA('Table'[Sales])+0
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Let me explain,
I have this table
i get this in the visual Card.
When i change 'null' for 0
then i get this.
i expect there also (zero)0
Hi,
Do not replace the null with 0 in the Query Editor. Write this measure:
Measure = calculate(countrows(data),data[stock]<>blank())
Hi,
Why do you need the option to sum and count when you are writing a measure? Anyways, please simplify your measure to:
No Blanc = coalesce(COUNTA('Table'[Sales]),0)
There should only be 1 closing bracket after 0.
Those measures look reasonable. Why do you expect sum/count in the dropdown if you've already included those aggregations in the measures you're using?
Because i need it for the results in card visual. In this new messure i can`t select a count or sum 🙄
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!