Conditionally formatting colors of horizontal bar chart for over/under budget

davidwong
davidwong Member
edited December 2023 in Charting

I am trying to figure out how to conditionally format my "Actual" sales either green/red for over/under "Budget" by location. Is this possible? I know this may have to be done with a beast mode (unsuccessful so far) as it cannot be done in chart properties.

Best Answer

  • MarkSnodgrass
    Answer ✓

    You can use the Color Rules to do this. This is found in the chart properties. It would look something like this.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.

Answers

  • MarkSnodgrass
    Answer ✓

    You can use the Color Rules to do this. This is found in the chart properties. It would look something like this.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • Hi @davidwong ,

    Just to clarify, you want the blue bars to change to red or green dependent on if an actual hits a target number right? However, is that target different per location or is the same across the board?

    John Le

    Are you on my newsletter? If not, signup here so you don't miss out on my Domo tricks, alerts about my webinars, cooking tips and more

    Signup here:

    https://www.dashboarddudes.com/newsletter

  • John @DashboardDude, that is correct. So I would need a conditional format or beast mode of some sort. The color rules wouldn't work because they are stagnant number inputs I believe (like greater than #, or less than #). Any insights?

  • Hmm yeah I don't think this chart is going to work for you because of the stagnant color. However if you use the bullet chart, you can set different goals per item. So that way you can see if something passes the goal or not.

    It's an option: You can see horizontal bullet charts on this page I made

    https://www.dashboarddudes.com/recipes

    John Le

    Are you on my newsletter? If not, signup here so you don't miss out on my Domo tricks, alerts about my webinars, cooking tips and more

    Signup here:

    https://www.dashboarddudes.com/newsletter

  • Gotcha, I experimented with the bullet visualization at one point but there's too much variation in each of my locations' (y axis) target value (budget). I appreciate the response.

  • @davidwong ,

    Feel free to schedule 30 sometime with me and we can see if we can find a solution: https://www.dashboarddudes.com/domo-help

    John Le

    Are you on my newsletter? If not, signup here so you don't miss out on my Domo tricks, alerts about my webinars, cooking tips and more

    Signup here:

    https://www.dashboarddudes.com/newsletter