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: 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 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.

SAS Training: Just a Click Away

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

Browse our catalog!

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