BookmarkSubscribeRSS Feed
jithuzoom
Obsidian | Level 7

Hi  Folks,

 

I made a button  bar to receive input to display top 5 /top 10 customers and I am forced to use text parameter since my button bar selection contains 'TOP 5' 'TOP 10' etc.I am using this parameter directly in rank filter and rank filter allows only numeric parameter.Could you please provide me a solution for this,.

 

Do you know how to create a numeric paramter from the text parameter or is there any way I can use numeric paramter in button bar which has Text selections('TOP 5').

 

Please provide your valuable thoughts on this.

 

Regards,

J George

1 REPLY 1
itchyeyeballs
Pyrite | Level 9

you should be able to create a calculated item that outputs a numeric value, just make sure its set as a numeric type

 

IF ( 'Rank_Parameter'n = 'Top 5' )
RETURN 1
ELSE 2

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 852 views
  • 1 like
  • 2 in conversation