BookmarkSubscribeRSS Feed
Bliss
Calcite | Level 5

Hello,

 

I'm trying to do the following:

 

Objects

Drop down list control || assigned variable: Date (format YYQC5)

Key Value graph || assigned variable: either Measure 1 (Cumulative total) OR Measure 2 (CumulativePeriod)

 

The Drop down list is filtering the Key Value.

 

When selecting a date in the Drop down list, I'd like the Key Value to return the cumulative total up to the date selected in the Drop down list.

Example:

 

Data

Quarter  || Amount

Q1 2022 || 100.000

Q2 2022 || 125.000

Q3 2022 || 75.000

Q4 2022 || 100.000

 

Objective

Selection: Drop-down list = 2nd Quarter 2022

Results: Key Value  = 225.000 (100.000 + 125.000)

 

Actual Results

Selection: Drop-down list = 2nd Quarter 2022

Results: Key Value = 125.000

 

How should I proceed?

 

additional info:

release: 8.5.2

1 REPLY 1
acordes
Rhodochrosite | Level 12

There are several ways to solve this.

 

If the quarter is defined as "date" then you can use the quarter in a slider as page filter. The key value shows the accumulated value. 

 

Or assign a parameter to the quarter selection and apply a filter in the key value object. 

 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 407 views
  • 0 likes
  • 2 in conversation