BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Renato_sas
SAS Employee

Hi @MahRaz,

 

Yes, but you will need a few additional auxiliary calculations, because you cannot use categories in aggregated measures, like we used before with the calculated item to evaluate the parameter value.

 

AuxMeasure1:

IF 'selected measure1'p Missing

RETURN 0

ELSE IF 'selected measure1'p = 'Aggreg Measure A'

RETURN 1

ELSE IF 'selected measure1'p = 'Aggreg Measure B'

RETURN 2

ELSE .

 

 

NewMeasure1 (this is your new proxy aggregated measure):

IF Min(AuxMeasure1) = 0

RETURN .

ELSE IF Min(AuxMeasure1) = 1

RETURN AggregMeasureA

ELSE Min(AuxMeasure1) = 2

RETURN AggregMeasureB

ELSE .

 

I've used the funtion Min(), but Max() and Avg() also work.

 

Best,

Renato

mvpalheta
Calcite | Level 5

Hi,

you tried click the right button on the variable and change the measure property to category??

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
  • 16 replies
  • 9296 views
  • 6 likes
  • 9 in conversation