BookmarkSubscribeRSS Feed
prateek_pk
Calcite | Level 5

Hi,

 

I'm trying to add a static value to a data item by creating a new calculated measure. The problem I'm having is that there is a filter and I want a different number to be added for different filter values. Currently, I'm doing this :

 

IF ( 'report_brand'n = 'ABC' )
RETURN ( 'Number YTD LY (#)'n + 123456 )
ELSE (
IF ( 'report_brand'n = 'XYZ' )
RETURN ( 'Number YTD LY (#)'n + 654321 )
ELSE 'Number YTD LY (#)'n )

 

123456 and 654321 are the numbers I wanna add to 'Number YTD LY (#)' on the basis of report_brand chosen in filter. Currenlty it looks as if it is adding the number to the total value of 'Number YTD LY (#)' and not to the 'Number YTD LY (#)' for the chosen report_brand. 

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
  • 0 replies
  • 689 views
  • 0 likes
  • 1 in conversation