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 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!

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