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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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