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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Sarasvathi
Regular Visitor

PROGRESS TRACKER - By Sectors, Stage & Status

Hi all,

 

Currently, I am trying to build a tracker using the sample data below, I have tried to build one, but STAGE is not following the assigned order. If you notice, the STAGE for all the sectors are same.

 

Sarasvathi_0-1735629200471.png

 

As attached below, this is the initial draft of the tracker built using the line chart, however, I want to indicate the colour of markers based on the status: Completed - Green, In Progress - Yellow, Not Started - Red. I want the tracker to be aligned with the sector slicer. Can someone help me with this ?

 

Sarasvathi_1-1735629578259.png

 

 

Regards,

Saras

 

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @Sarasvathi  There is no option in the marker color to make it dynamic. There are many option out there to achieve such functionality. 

 


Here is my suggestions.

 

Approach 1:

First Create a clustered column chart and then convert it back to line chart. Find the details below:

shafiz_p_0-1735637022833.png

Create a static value measure:

Static = 1

 

In x axis place Stages and in y axis place the static measure. You will get visual as follows:

shafiz_p_1-1735637139100.png

Create a lable color measure:

Label Color = 
SWITCH(
    TRUE(),
    MAX('Table'[STATUS]) = "Completed", "Green",
    MAX('Table'[STATUS]) = "Inprogress", "Yellow",
    MAX('Table'[STATUS]) = "Not Started", "Red"
)

Now go to coloumn section and click fx icon in color option and select field value and place the Label color measure:

shafiz_p_2-1735637221726.png

After placing lable color , you will get the below image:

shafiz_p_3-1735637295026.png

Now select the visual and turn this back to line chart. See image below after convert to line chart:

shafiz_p_4-1735637355980.png

 

 

Approach 2:

Use a data lable to identify such status. Now go to data level and turned it on.  I have only one series, which is target. Go to value section of the data level and replace default with the custome lable. Try this:

 

Target Label = 
IF(
    SELECTEDVALUE('Table'[STAGE]) = MAX('Table'[STAGE]),
    "▼",  -- Useing windows key + ;, you will get emoji option, from there go to geometric symbol
    BLANK()
)

 

shafiz_p_0-1735632941370.png

 

Now you would be able to dynamically color and identify status. You can use either, Rules or Field value option. For rules, add each conditon:

shafiz_p_1-1735633033476.png

 

If you would like to use field value then try below code:

 

Label Color = 
SWITCH(
    TRUE(),
    MAX('Table'[STATUS]) = "Completed", "Green",
    MAX('Table'[STATUS]) = "Inprogress", "Yellow",
    MAX('Table'[STATUS]) = "Not Started", "Red"
)

 

 

and you are done. Output are:

1. When no selection of sector:

shafiz_p_2-1735633135399.png

 

2. When select perticula sector, which is full complete:

shafiz_p_3-1735633186829.png

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

 

View solution in original post

2 REPLIES 2
shafiz_p
Super User
Super User

Hi @Sarasvathi  There is no option in the marker color to make it dynamic. There are many option out there to achieve such functionality. 

 


Here is my suggestions.

 

Approach 1:

First Create a clustered column chart and then convert it back to line chart. Find the details below:

shafiz_p_0-1735637022833.png

Create a static value measure:

Static = 1

 

In x axis place Stages and in y axis place the static measure. You will get visual as follows:

shafiz_p_1-1735637139100.png

Create a lable color measure:

Label Color = 
SWITCH(
    TRUE(),
    MAX('Table'[STATUS]) = "Completed", "Green",
    MAX('Table'[STATUS]) = "Inprogress", "Yellow",
    MAX('Table'[STATUS]) = "Not Started", "Red"
)

Now go to coloumn section and click fx icon in color option and select field value and place the Label color measure:

shafiz_p_2-1735637221726.png

After placing lable color , you will get the below image:

shafiz_p_3-1735637295026.png

Now select the visual and turn this back to line chart. See image below after convert to line chart:

shafiz_p_4-1735637355980.png

 

 

Approach 2:

Use a data lable to identify such status. Now go to data level and turned it on.  I have only one series, which is target. Go to value section of the data level and replace default with the custome lable. Try this:

 

Target Label = 
IF(
    SELECTEDVALUE('Table'[STAGE]) = MAX('Table'[STAGE]),
    "▼",  -- Useing windows key + ;, you will get emoji option, from there go to geometric symbol
    BLANK()
)

 

shafiz_p_0-1735632941370.png

 

Now you would be able to dynamically color and identify status. You can use either, Rules or Field value option. For rules, add each conditon:

shafiz_p_1-1735633033476.png

 

If you would like to use field value then try below code:

 

Label Color = 
SWITCH(
    TRUE(),
    MAX('Table'[STATUS]) = "Completed", "Green",
    MAX('Table'[STATUS]) = "Inprogress", "Yellow",
    MAX('Table'[STATUS]) = "Not Started", "Red"
)

 

 

and you are done. Output are:

1. When no selection of sector:

shafiz_p_2-1735633135399.png

 

2. When select perticula sector, which is full complete:

shafiz_p_3-1735633186829.png

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

 

Thank you for the information. I have tried first approach using the bar chart, however it doesn't work. Fortunately the second method works. 

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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