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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GDC
Regular Visitor

Replace "null" by image or text

Hi everyone,

 

I would like to know if it's possible to replace the "null" text when there is no data avalaible by an image ?

 

For example : 

1- There is a data avalaible from 25/09/2019 to 09/11/2019

Capture 1.PNG

 

2- But there is no data on the 09/11/2019

Capture 2.PNG

 

3- Can I replace the "vide" text by an image ? or, at least, ask to power bi to write "fermé" instead of "vide"?

 

I didn't found such a possibility in the conditionnal formating options.

 

Thank you very much!

 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @GDC ,

 

We can create a measure as below to work on it.

Measure = 
VAR a =
    DIVIDE ( SUM ( 'Table'[value1] ), SUM ( 'Table'[value2] ) )
RETURN
    IF ( a = BLANK (), "fermé", a )

Capture.PNG

 

For more details, please check the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @GDC ,

 

We can create a measure as below to work on it.

Measure = 
VAR a =
    DIVIDE ( SUM ( 'Table'[value1] ), SUM ( 'Table'[value2] ) )
RETURN
    IF ( a = BLANK (), "fermé", a )

Capture.PNG

 

For more details, please check the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi,

 

Sorry for the late reply.

 

We had to adapt a little bit your solution because of the way our database is made but it works perfectly now.

 

Thank you very much! 

Anonymous
Not applicable

check ISNULL or 

add + 0 at end of your Measure forumla. so, always displays 0 if there is no value.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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