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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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