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
WLou
Helper I
Helper I

Suggestion on visualisation - sort by traffic light

Hi all, 

 

Came across a very effective visialisation (see below) that suits our current need

Traffic Light.jpg

I believe I have got most of the measures ready but need some guidance on how to mimic the visualisation part 

 

As a new PBI user google the right key word struggles me the most 

So if anyone can provide few key things/technics to consider in order to construct this table that would be wonderful

 

Regards,

Wendy

2 ACCEPTED SOLUTIONS
SteveCampbell
Memorable Member
Memorable Member

This is a matrix visualization. There apear to be a couple of fields added to the "Rows", and the numeric fields are added to "Values".

 

I think this is quite a complicated example. It's hard to say from just that pic, but I can do my best at guessing how it's made:

 

The Cost Variance is done with conditional formatting - Data Bars. This is found in the formattiong pane of the matrix.

 

The traffic lights, it is hard to say what they represent. These appear to be in a matrix row of "Project", with "cost type" underneath it. The project would be a custom column, something like this:

Project = SWITCH( ( 'Table'[Column1]) 
, 1,
"data:image/svg+xml;utf8," &
         "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> 
            <circle cx='20' cy='20' r='15' fill='red' /> 
         </svg>"
, 2,
        "data&colon;image/svg+xml;utf8," &
         "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> 
            <circle cx='20' cy='20' r='15' fill='green' /> 
         </svg>")

I am assuming they represen the proejct health, which is stored in a column somewhere. You would need to change the SWITCH logic (see here). this comes from this blog:

https://hatfullofdata.blog/svg-in-power-bi-part-2/

 

The rows are arranged something like this:

Annotation 2020-01-21 201855.png

You can drill down and expand all 

Annotation 2020-01-21 201929.png

 

You can change the formats in the format pane to make it like how you want, I suggest playing arround. In this example, column headers have been changed to green.

 

Appreciate your Kudos
Connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png

 



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



View solution in original post

v-lionel-msft
Community Support
Community Support

Hi @WLou ,

For the making of this picture, where have you completed and what technical problems have you encountered?

The red and green signal lights in the picture may come from an icon column, like this:

hh10.PNG

hh9.PNG

And the visual the table has used may come from a custom visual. You can try to find it in the MarketPlace.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @WLou ,

For the making of this picture, where have you completed and what technical problems have you encountered?

The red and green signal lights in the picture may come from an icon column, like this:

hh10.PNG

hh9.PNG

And the visual the table has used may come from a custom visual. You can try to find it in the MarketPlace.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SteveCampbell
Memorable Member
Memorable Member

This is a matrix visualization. There apear to be a couple of fields added to the "Rows", and the numeric fields are added to "Values".

 

I think this is quite a complicated example. It's hard to say from just that pic, but I can do my best at guessing how it's made:

 

The Cost Variance is done with conditional formatting - Data Bars. This is found in the formattiong pane of the matrix.

 

The traffic lights, it is hard to say what they represent. These appear to be in a matrix row of "Project", with "cost type" underneath it. The project would be a custom column, something like this:

Project = SWITCH( ( 'Table'[Column1]) 
, 1,
"data&colon;image/svg+xml;utf8," &
         "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> 
            <circle cx='20' cy='20' r='15' fill='red' /> 
         </svg>"
, 2,
        "data&colon;image/svg+xml;utf8," &
         "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'> 
            <circle cx='20' cy='20' r='15' fill='green' /> 
         </svg>")

I am assuming they represen the proejct health, which is stored in a column somewhere. You would need to change the SWITCH logic (see here). this comes from this blog:

https://hatfullofdata.blog/svg-in-power-bi-part-2/

 

The rows are arranged something like this:

Annotation 2020-01-21 201855.png

You can drill down and expand all 

Annotation 2020-01-21 201929.png

 

You can change the formats in the format pane to make it like how you want, I suggest playing arround. In this example, column headers have been changed to green.

 

Appreciate your Kudos
Connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png

 



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Thank you Steve, 

 

Didn't expect to have such detailed guild, will give it a go see how I travel

 

Regards,

Wendy 

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.