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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
DavidB023
Helper III
Helper III

Traffic lights

 

Hi everybody !

 

I need to create a tree map with color function of value, but moreover I want to inject a text in each case. But my column is in a text format and when I want to inject the text, Power Bi shows "Number of..." so not my text..

Here is what I have, it is basic :

 

I ve.PNG

1 ACCEPTED SOLUTION

I success to create traffic lights, here is my solution :


Create a new dynamic column in date category : Picture URL

The second argument is picture, red orange and green circle

Indicateur = IF(
    [AAAA]=0; "https://upload.wikimedia.org/wikipedia/commons/a/ac/Rond_rouge.png")
    &
    IF([AAAA]=1; "https://upload.wikimedia.org/wikipedia/commons/a/a0/Rond_orange.png")
        &
        IF([AAAA]=2; "https://upload.wikimedia.org/wikipedia/commons/9/9a/Rond_vert.png")

 

David

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@DavidB023,

 

You may take advantage of other fields.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft,

Other fields like ?

 

What I need is a visual like a traffic lights. In fact, when one of my value has a number, a color between red yellow and green appaer on my visual. That's why I used treemap and I success. But now, I want to have a description text (which is variable for every value and will be actualize) in every case and I can't put a text... Power BI seems needed only figures...

 

Best regard

David

I success to create traffic lights, here is my solution :


Create a new dynamic column in date category : Picture URL

The second argument is picture, red orange and green circle

Indicateur = IF(
    [AAAA]=0; "https://upload.wikimedia.org/wikipedia/commons/a/ac/Rond_rouge.png")
    &
    IF([AAAA]=1; "https://upload.wikimedia.org/wikipedia/commons/a/a0/Rond_orange.png")
        &
        IF([AAAA]=2; "https://upload.wikimedia.org/wikipedia/commons/9/9a/Rond_vert.png")

 

David

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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