BookmarkSubscribeRSS Feed
santosh_pat69
Quartz | Level 8

Hi All,

 

I am trying to create a Pivot table using SAS, i am using the below code (Sample)

 

ods tagsets.tableeditor file="C:/temp.temp.html"

options(button_text="Create PivotTable"

auto_excel="yes"

excel_open="yes"

pivotrow="product_line"

pivotcol="quarter"

pivotdata="profit"

pivotdata_stats="Sum"

pivotpage="year"

excel_save_file="C:/temp.xls"

quit="yes");

proc print data=sashelp.orsales;

run;

ods tagsets.tableeditor close;

 

I am not able to create the Filters on the excel sheet, and Pivotdata_stats is not working for me.

 

 

Regards

Santosh...

2 REPLIES 2
ballardw
Super User

Describe "not working", errors?No output? Unexpected output?

It may help to show what you did get and what it shoud look like.

santosh_pat69
Quartz | Level 8

Hi ,

 

The Pivotdata_stats is functioning as expected i have used Pivotdata_stats ="Sum" but on the Pivot table its showing up as Count(Pivotdata).

 

And also i am not able to add the filters on the Pivot table, after the pivot table is created i need to add the Filter on the pivot.

 

Could you please suggest?

Regards.

Santosh

 

 

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!

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
  • 2 replies
  • 832 views
  • 0 likes
  • 2 in conversation