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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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