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, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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