BookmarkSubscribeRSS Feed
Ronny_Dsouza
Obsidian | Level 7

Hi All,


As part of a Business Rule, there is a requirement  of using the Median as part of the condition, one of the approach we are trying to take is to see if its part of any of the profiling node which then can be used in conjunction of the Data Monitoring node in a data job.


Hence the following query

1) Is there any manner wherein I can capture the Median Statistic that is outputted as part of a Profiling activity, if Not

2) Any one who has used the expression node to generate the median.

Regard

Ronny

3 REPLIES 3
skillman
SAS Employee

Ronny,

There is not a straightforward way to do this with just one expression. I have attached a screenshot of a job that will calculate the median:

itssasct - Remote Desktop Connection_2014-11-25_11-44-50.png

Input:

itssasct - Remote Desktop Connection_2014-11-25_11-47-03.png

Output:

itssasct - Remote Desktop Connection_2014-11-25_11-47-52.png

The other variables are ones that were created to assist in the median calculation.

-shawn

Ronny_Dsouza
Obsidian | Level 7

Hey Shawan,

would it be possible to share the job , it would be of great help

skillman
SAS Employee

Ronny, I have attached the job in a Data Management package file as well as the ddf file.

Let me know if you have any questions importing it into your environment, or any questions about the job itself.

Thanks,

-shawn

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 910 views
  • 0 likes
  • 2 in conversation