March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
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 ?
Regards,
Saras
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:
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:
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:
After placing lable color , you will get the below image:
Now select the visual and turn this back to line chart. See image below after convert to line chart:
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()
)
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:
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:
2. When select perticula sector, which is full complete:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |