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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
TechR21
Helper V
Helper V

Replacing the word "(Blank)" in gauge

Hi,

 

I have a gauge visual, which uses a measure to calculate the percentage of number of days in a week that a specific value in a column was below 5.0 or not. Now i have a week that all values are above 5.0 , so gauge is 0% --> and gives me a blank value in the visual itself.

 

measure i use:

VAR less5 =
CALCULATE ( COUNT ( 'table'[column] ), KEEPFILTERS ( 'table'[column] < 5.0 ) )
RETURN
DIVIDE ( less5, 7 )

 

Is there a way to replace this word "(Blank)" , like a text or something?

 

TechR21_0-1680507580281.png

 

 

 

1 ACCEPTED SOLUTION
olgad
Resident Rockstar
Resident Rockstar

Hi, checked it, so it wants a number, if you just write 0 in that last part, you will be good

 If(Isblank(final),0, final)

olgad_0-1680565606241.png

olgad_1-1680565670741.png

if you want a text, then use the card visual and put it on top of the value in the gauge. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

9 REPLIES 9
ahmedoye
Responsive Resident
Responsive Resident

The last part of your DAX is where you need to edit to the below:

DIVIDE ( less5, 7, 0)

If this works for you, kindly mark as a solution to allow others who may have similar issues find it easily.

olgad
Resident Rockstar
Resident Rockstar

VAR less5 =
CALCULATE ( COUNT ( 'table'[column] ), KEEPFILTERS ( 'table'[column] < 5.0 ) )

var final=DIVIDE ( less5, 7 )
RETURN
If(Isblank(final), "0%", final)


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

doesnt seem to work, still see "(Blank)"

olgad
Resident Rockstar
Resident Rockstar

Hi, checked it, so it wants a number, if you just write 0 in that last part, you will be good

 If(Isblank(final),0, final)

olgad_0-1680565606241.png

olgad_1-1680565670741.png

if you want a text, then use the card visual and put it on top of the value in the gauge. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

yes this works, thank you

olgad
Resident Rockstar
Resident Rockstar

in your measure calculation
if(isblank(YOUR CALCULATION), "No values", YOUR CALCULATION)

For example 
if
(isblank(Sum(new[target])), "No values", Sum(new[target]))
olgad_0-1680508316130.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

I forgot to include my measure, which is now included in my post. Can i still include your line in there?

olgad
Resident Rockstar
Resident Rockstar

If not blank, what text would you like to have there? And it is a gauge right?


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

yes you are right, its a gauge! sorry. Doesnt matter the text, something like "all times are below 5.0", or "0%" for example

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.