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

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