BookmarkSubscribeRSS Feed
killiangavin
Calcite | Level 5

I have a dataset in SAS VA. One of the fields is "Application Sanctioned" with a Yes or No option. I want to find the sanction rate in one of my crosstabs on SAS VA i.e Total Rows with Application Sanction = YES divided by Total Rows.

 

 

What is the best way to do this in SAS VA? 

 

Any help would be really appreciated.  

2 REPLIES 2
FredrikE
Rhodochrosite | Level 12

Hi!

Could this work for you?

 

Create a calculated item (lets call it "ApSa": 

 

IF 'Application Sanctioned'n = 'YES' then return 1

ELSE 0

 

Then create a new aggregated measure:

 

Sum [_ByGroup_] ('ApSa'n) / Sum [_ForAll_] ('Frequency'n)

 

Set format to percent and test it in your cross table.

 

//Fredrik

killiangavin
Calcite | Level 5
Hi That really looks like it will work,





Thank you some much !!


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