BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
gzr2mz39
Quartz | Level 8

tot_per=catx("% ,",per_task,tot) where per_task and tot are both numeric values.
I'm trying to create the following table:

proc report data=task_groups1 nowd contents="Claims" out=test

  style(header)=[font_weight=bold background=CX90D9D7];

  options missing='0';

  column task_grp bu, (tot_per);

  define task_grp / group 'Task' order=data;

  define bu / across '';

  define tot_per / '' style(column)={just=c};
run;

How do I fix the following error?
"ERROR: There is no statistic associated with tot_per."

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Data would be helpful.

I think this is a case where you need a dummy variable, something like...

column task_grp bu, (tot_per) dummy;

define dummy / noprint;

I could test this if you supplied some data.

View solution in original post

5 REPLIES 5
data_null__
Jade | Level 19

Data would be helpful.

I think this is a case where you need a dummy variable, something like...

column task_grp bu, (tot_per) dummy;

define dummy / noprint;

I could test this if you supplied some data.

gzr2mz39
Quartz | Level 8

That works.

Will a compute block allow me to show blank cells as 0%, 0?

Or is there a better way?

Thank you.

data_null__
Jade | Level 19

I would format the character data cells to look exactly like I want them to look, in the data step where you create tot_per. 

gzr2mz39
Quartz | Level 8

I don't have missing information in the data step. Only when proc report creates the table do I have blank cells due to combinations being created that don't exist in the data step. I could manually create these combinations in the data step, but that would be quite a bit of manual coding.

data_null__
Jade | Level 19

It wont be to hard to create the "missing" cells.  I think that is easier that using CALL DEFINE espically on an across variable.  Show some data.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 3257 views
  • 1 like
  • 2 in conversation