BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sid5005
Calcite | Level 5

Hi All,

 

I have created 2 separate aggregated measures(YTD and MTD using the "Create--> Year to Date).

I have Year in drop down and a Month in list.

Following are my conditions to display the YTD and MTD values in a list table.

1) When there is no selection YTD should be displayed

2) When only Year is selected YTD should be displayed

3) When only Month or multiple months are selected MTD should be displayed

4) When Year and Month is selected MTD should be displayed.

 

How can this be achieved?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sam_SAS
SAS Employee
If you assign parameters to your prompts (controls), then it should be possible to use some IF/ELSE logic based on those parameter values to return the appropriate values.

Depending on the version of VA that you have, you might have the IsSet operator available, which can check whether a parameter has a value.

Sam

View solution in original post

1 REPLY 1
Sam_SAS
SAS Employee
If you assign parameters to your prompts (controls), then it should be possible to use some IF/ELSE logic based on those parameter values to return the appropriate values.

Depending on the version of VA that you have, you might have the IsSet operator available, which can check whether a parameter has a value.

Sam

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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