SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
Helannivas
Quartz | Level 8

Hi,

 

 

I'm using SAS EG to generate a report from a output of a query. In the Query output, the values are displayed as follows

 

Job Name : Job_XXXX

 

Month         Average Time

SEP-16      02:00:51

OCT-16      03:54:14

NOV-16      12:12:54

DEC-16      08:08:21

JAN-17       10:21:54

FEB-17       11:12:24

MAR-17      02:14:45

APR-17       05:06:45

MAY-17       05:08:21

JUN-17       12:12:12

JUL-17        08:08:07

AUG-17       09:08:17

SEP-17       10:05:35

 

While creating a line plot(Mulitple line plot from group column), I have given task roles as 

Horizontal(Limit :1) as Month

Vertical(Limit :1) as Average Time

Group(Limit : 1) as Job Name

 

and given horizontal major tricks as 13 and ran the report.

But from the output , I could not able to see all the months under horizontal axis and also I could see a strange thing that 

the values are not properly aligned in the graph.(Eg:) For horizontal axis(Dec-16), it showing Jan - 17 values (i.e 10:21:54). But when I move the cursor in the pointed value of line plot, its showing proper value as a pop - up..

 

I think, the issue is with horizontal axis displayed in the line plot.

 

Note : Month is a derived column from the date value and I have used intx function to retrieve that.  Im using SAS EG V4.1.

 

Please help me to resolve the issue. Thnaks in advance.

3 REPLIES 3
TomKari
Onyx | Level 15

I tried to replicate it, and it worked perfectly for me. So, a couple of questions:

 

Is your "Month" value a SAS date value? I used a date value.

 

I didn't specity anything for the horizontal axis; I just moved the variable names to the horizontal and vertical roles, and let 'er rip.

 

Tom

 

Graph.png

ballardw
Super User

Show the code for "deriving" your month value. I can see several ways that could be done such that you duplicate the values.

Also showing the actual code for the graph might help.

Helannivas
Quartz | Level 8

Hi,

 

Thanks for the response.

 

I have found out the solution for this. 

 

Under Horizontal major ticks , I have given "Specify"  as '01SEP16'd to '01SEP17'd by Month and the horizontal month (values) have rotated to 90 degree.

 

Now the 13 months values gets fitted into the graph and displayed proper graph.

 

Thanks

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1572 views
  • 2 likes
  • 3 in conversation