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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1253 views
  • 0 likes
  • 2 in conversation