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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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