BookmarkSubscribeRSS Feed
SanjayM
Calcite | Level 5
I need the output shown as below. How can I get it in EG

Product Code Year 2005 Year 2006
Total Sales Total Qty Total Sales Total Qty
Code1 1000 900 3500 2500
Code2 2000 800 4000 1500

Total

I have a daily Sales transaction table storing the sales and qty figure for

I can get a data set of yearly values of Sales and Qty per product.
Can I use transpose to get the above out put

We have tried with one transpose column and it works. Here there are tqo columns to be transposed, Sales and Qty.

Which columns should be grouped and transposed.
What are
New Column names
New column labels and
Copy variables
1 REPLY 1
deleted_user
Not applicable
I thought I saw the same question posted somewhere else, and a response from Cynthia demonstrating the use of the Tabulate procedure.

You should look up the answer she gave, searching on the key words Tabulate and Class.

Since you say "Output", I presume you mean a report and her answer dealt specifically with rows defined by a classification variable, and summary variables reported under a classification variable.

In her final answer she also indicated where in EG you can find the Summary tables builder to build the table code.

Kind regards'

David

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 912 views
  • 0 likes
  • 2 in conversation