BookmarkSubscribeRSS Feed
Mindi
Calcite | Level 5

Hi SAS Community,

I am trying to set color mapped targets for a  bar chart with four categories (4 different hospital facilities) - with admission frequency on the Y axis and a bar for each facility on the X axis.

I know how to set a display rule to change the bars color when frequency reaches a specific threshold -- but I can only do this for the entire graph.  However, each of my facilities have different targets and so I need to write different display rules for EACH bar in my chart. Is this possible? Please help!

Thanks!

Mindi

 

1 REPLY 1
FredrikE
Rhodochrosite | Level 12

I think the easiest would be to create a calculated variable that get the value 1 if target is reached and 0 if not.

You create the rule different for each hospital, but the same variable is used.

 

You then create a display rule on this new variable.

 

//Fredrik

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1311 views
  • 0 likes
  • 2 in conversation