BookmarkSubscribeRSS Feed
to_the_point
Calcite | Level 5

the incorrect number on tool tip seems to be a sas issue with the specified detaillevel statement - I can't work out what it is showing but in the below example it's nearly the arithmetic mean.


ods listing close;
ods html file="sport_sales.html";

goptions reset=all device=java;

data sports_only;
  set sashelp.orsales;
  if product_line="Sports";
  format profit dollar12.;
  format quantity comma12.;
run;

proc gtile data=sports_only;
    flow quantity tileby=(product_group year) /
        colorvar=profit
        /* display less details */
        detaillevel=1
        /* reverse the colors so that blue is highest */
        colorramp=(CXDD6060 CXFFFFFF CX6497EB);
run;
quit;

ods html close;
ods listing;

proc summary data=sports_only nway;
class product_group year;
var profit quantity;
output out=bob2 sum(profit quantity)= ;
run;

thoughts?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 15 replies
  • 2478 views
  • 0 likes
  • 7 in conversation