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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Display Image IF

Hi,

 

I want to display an Image conditionally, but I have errors in my Syntax...

 

DisplayExclamation =
IF(
'FaktStruktur'[Attribute] = 'Basisinfo:KontroversenBeschreibung' && 'FaktStruktur'[Value] <> BLANK,
"https://www.dropbox.com/s/c2tcp28cyzg6pku/Ausrufezeichen-klein.png?raw=1"
)

 

Is it possible this way? DataCategory = ImageURL, so the display of the image itself is ok

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Try using double quotes around the attribute:

DisplayExclamation =
IF (
    'FaktStruktur'[Attribute] = "Basisinfo:KontroversenBeschreibung"
        && 'FaktStruktur'[Value] <> BLANK,
    "https://www.dropbox.com/s/c2tcp28cyzg6pku/Ausrufezeichen-klein.png?raw=1"
)

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

Try using double quotes around the attribute:

DisplayExclamation =
IF (
    'FaktStruktur'[Attribute] = "Basisinfo:KontroversenBeschreibung"
        && 'FaktStruktur'[Value] <> BLANK,
    "https://www.dropbox.com/s/c2tcp28cyzg6pku/Ausrufezeichen-klein.png?raw=1"
)

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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