BookmarkSubscribeRSS Feed
Beecelal
Fluorite | Level 6

Hi all,

I want to calculate the difference between group1 and group2 and between group3 and group4.
I have have the cross table and should be showing something as below (attached in excel).

 

here
Group is a column,
campaign and name are Row
count, net sales, order value are measures


I don't know how to apply in this case.

Thank you in advance for your help.
BR

3 REPLIES 3
Sam_SAS
SAS Employee

Hello,

 

You can create the difference by using simple calculated measures. They would have an expression like this:

 

'Group1'n - 'Group2'n

 

Let us know if this works.

 

Thanks,

Sam

Beecelal
Fluorite | Level 6

Hi Sam,

 

here Group1 and Group2 ... are not the Variable name. The variable Name is here the Group the Group is a category variable. 

 

Thanks,

Celal

Sam_SAS
SAS Employee

Oh! I get it now.

Sorry, I don't think you can achieve this using your current data structure and using the Crosstab object in VA.

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
  • 3 replies
  • 1047 views
  • 4 likes
  • 2 in conversation