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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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

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
Super User
Super User

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

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
Super User
Super User

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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.