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?

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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