Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
Frixel
Post Prodigy
Post Prodigy

How to disabled the (blank) in card visual

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.

Frixel_0-1628621566168.png


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?

1 ACCEPTED SOLUTION
Frixel
Post Prodigy
Post Prodigy

I found this formule thats works fine for me.

 

LegeRegels = CALCULATE(COUNTROWS('ExportFile'),FILTER(ExportFile,'ExportFile'[Remark] = BLANK()))+0

 

View solution in original post

16 REPLIES 16
Frixel
Post Prodigy
Post Prodigy

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.

Frixel
Post Prodigy
Post Prodigy

@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' ?

 

Frixel_0-1628878992161.png

 

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.

@AlexisOlson When i do that then still i have ' Blank' 

What do i wrong?

 

Frixel_0-1628884014261.png

 

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.

@AlexisOlson 

oke now i have a zero as result with this measure

Frixel_0-1628926718135.png

but now, how do i get that in here when i wil see the result of the stock? 

 

Frixel_1-1628926808225.png

 

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).

v-jingzhang
Community Support
Community Support

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.

 

Frixel
Post Prodigy
Post Prodigy

Let me explain,

I have this table 

Frixel_0-1628665656899.png

i get this in the visual Card.

Frixel_1-1628665832913.png

When i change 'null' for 0 

 

Frixel_2-1628665922896.png

then i get this.

Frixel_3-1628665978254.png

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())


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

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)

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

Then i get this error

Frixel_0-1628659316578.png

 

There should only be 1 closing bracket after 0.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
AlexisOlson
Super User
Super User

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?

@AlexisOlson 

Because i need it for the results in card visual. In this new messure i can`t select a count or sum 🙄

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors