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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
KR300
Helper III
Helper III

Dynamic Fill Colour based on Column values conditions

Hi Team, I have a table below like this

FixVersion NameStageRoundIs Final RoundPlanned DateActual DateStatusTracking
SFP.R.11.8Release InitiationRound 1TRUE12/13/202412/14/2024CompletedOn Track
SFP.R.11.8QA2 DeployRound 1FALSE12/13/202412/13/2024CompletedOn track
SFP.R.11.8QA2 DeployRound 2FALSE12/14/202412/15/2024FailedOff track
SFP.R.11.8QA2 DeployRound 3FALSE12/15/202412/15/2024CompletedOn Track
SFP.R.11.8QA2 DeployRound 4TRUE12/16/202412/16/2024CompletedOn Track
SFP.R.11.8QA2 Testing & Sign-OffRound 1TRUE12/15/202412/16/2024CompletedOn Track
SFP.R.11.8Stage DeployRound 1FALSE12/18/202412/18/2024CompletedOn Track
SFP.R.11.8Stage Testing & Sign-OffRound 1FALSE12/19/202412/19/2024CompletedOn Track
SFP.R.11.8Perf DeployRound 1FALSE12/18/202412/19/2024CompletedOn Track
SFP.R.11.8Perf Testing & Sign-OffRound 1FALSE12/22/202412/25/2024CompletedOn Track
SFP.R.11.8Security ScansRound 1FALSE12/23/202412/26/2024CompletedOn Track
SFP.R.11.8Go/No-Go DecisionRound 1FALSE12/24/202412/27/2024CompletedOn Track
SFP.R.11.8Prod DeployRound 1FALSE12/25/202412/25/2024CompletedOn Track
SFP.R.11.8Prod Health CheckRound 1FALSE12/25/202412/25/2024CompletedOn Track
SFP.R.11.9Release InitiationRound 1TRUE12/13/202412/14/2024CompletedOn Track
SFP.R.11.9QA2 DeployRound 1FALSE12/13/202412/13/2024CompletedOn track
SFP.R.11.9QA2 DeployRound 2FALSE12/14/202412/14/2024FailedOn track
SFP.R.11.9QA2 DeployRound 3FALSE12/15/202412/15/2024CompletedOn Track
SFP.R.11.9QA2 DeployRound 4TRUE12/16/202412/16/2024CompletedOn Track
SFP.R.11.9QA2 TestingRound 1TRUE12/13/202412/14/2024InprogressOn Track
SFP.R.11.9QA2 TestingRound 2TRUE12/14/202412/14/2024InprogressOn Track
SFP.R.11.9QA2 TestingRound 3TRUE12/15/202412/15/2024InprogressOn Track
SFP.R.11.9QA2 Testing & Sign-OffRound 4TRUE12/15/202412/16/2024CompletedOn Track
SFP.R.11.9Stage DeployRound 1FALSE12/18/202412/18/2024CompletedOn Track
SFP.R.11.9Stage TestingRound 1FALSE12/18/202412/18/2024CompletedOn Track
SFP.R.11.9Stage Testing & Sign-OffRound 1FALSE12/19/202412/19/2024CompletedOn Track
SFP.R.11.9Perf DeployRound 1FALSE12/18/202412/19/2024CompletedOn Track
SFP.R.11.9Perf TestingRound 1FALSE12/19/202412/20/2024CompletedOn Track
SFP.R.11.9Perf Testing & Sign-OffRound 1FALSE12/22/202412/25/2024CompletedOn Track
SFP.R.11.9Security ScansRound 1FALSE12/23/202412/26/2024CompletedOn Track
SFP.R.11.9Go/No-Go DecisionRound 1FALSE12/24/202412/27/2024CompletedOn Track
SFP.R.11.9Prod DeployRound 1FALSE12/25/202412/25/2024CompletedOn Track
SFP.R.11.9Prod Health CheckRound 1FALSE12/25/202412/25/2024CompletedOn Track

 

Let's say I have 2 shapes  ( 1 for Release Initiation, ANother for QA2 Deploy ) to show what is the progress on those Stages in Colour Indication. And, I have only one Slicer based on the FixVersion Name ( No Other Slicers ).

Scenario : I want to show Dynamic fill colour to the Shapes based on below criteria

If [Stage]='Release Initiation' & [Is Final Round]=True & [Status]='Completed' then " Green",

If [Stage]='Release Initiation' & [Is Final Round]=Fail & [Status]='In Progress' then " Yellow",

If [Stage]='Release Initiation' & [Is Final Round]=True & [Status]='Not Yet Started' then " Grey" like i have similar Conditions

 

How to solve this?

 

 

 

6 REPLIES 6
KR300
Helper III
Helper III

Hi Team, Those solutions are not working as expected.

 

Do i need to change the Structure of the data? for the Dynamic color fill in shapes?

Anonymous
Not applicable

Hi, @KR300 

Thanks for the reply from danextian and Kedar_Pande. What is the current problem you are facing, you can post the current situation and the desired effect to be achieved and the logic to achieve that effect.

Best Regards,
Yang

Community Support Team

Kedar_Pande
Super User
Super User

@KR300 

Create a Measure for Fill Color

DynamicFillColor = 
SWITCH(
TRUE(),
SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
SELECTEDVALUE('Table'[Is Final Round]) = TRUE &&
SELECTEDVALUE('Table'[Status]) = "Completed", "Green",
SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
SELECTEDVALUE('Table'[Is Final Round]) = FALSE &&
SELECTEDVALUE('Table'[Status]) = "In Progress", "Yellow",
SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
SELECTEDVALUE('Table'[Is Final Round]) = TRUE &&
SELECTEDVALUE('Table'[Status]) = "Not Yet Started", "Grey",
"#FFFFFF00"
)

Go to the Format Shape panel.
Under Fill, enable Conditional Formatting.
Choose the DynamicFillColor measure you created.

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Hi @Kedar_Pande ,  @danextian , I have only one slicer here ( FixVersion Name ) ( No other slicer s)Indicator1.pngIndicator 2.png

 

I want to show Dynamic Fill Color in the shapes based on the multiple AND conditions.

 

Pls help out or any workaround. Do i need to change data format which can solve my issue.

Your logic takes into consideration Is Final Round column however, this returns more than two values for each stage which means that for each shape for each stage, the conditional formatting needs to know which value it should consider  to be able to assign a color. That's for Is Final Round alone - the same thing applies to Status. For each stage DAX must know which status, if there are multiple, to base the assigned color on.

danextian_1-1734591300156.png

If I were to re-write your formula as a measure, either status or is final round will return blank for each stage which will not meet any of the conditions and so will return blank.

Color Indicator Measure = 
SWITCH(
    TRUE(),
    SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
    SELECTEDVALUE('Table'[Is Final Round]) = TRUE &&
    SELECTEDVALUE('Table'[Status]) = "Completed", "#00FF00", // Green

    SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
    SELECTEDVALUE('Table'[Is Final Round]) = FALSE &&
    SELECTEDVALUE('Table'[Status]) = "In Progress", "#FFFF00", // Yellow

    SELECTEDVALUE('Table'[Stage]) = "Release Initiation" &&
    SELECTEDVALUE('Table'[Is Final Round]) = TRUE &&
    SELECTEDVALUE('Table'[Status]) = "Not Yet Started", "#808080", // Grey

    BLANK()
)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @KR300 

If you have the FixVersion Name slicer only then that means there can be more than one status at once. Which status should the condition pick?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.