BookmarkSubscribeRSS Feed
anand5466
Calcite | Level 5

Hi,

 

I need to transpose the multiple columns. The below table is my source

1.png


and i need the data like the below

 

2.png

 

 

4 REPLIES 4
novinosrin
Tourmaline | Level 20

Hi @anand5466  Welcome to SAS communities. If you could paste your data as plain text rather than pics, that would help copy paste and test. 

Btw, The solution is a straight forward array parking i.e N*2

 

 

IMHO, also looks like some kinda report with header Annual. You need to clarify whether you want a dataset or a report?

ballardw
Super User

@anand5466 wrote:

Hi,

 

I need to transpose the multiple columns. The below table is my source

1.png


and i need the data like the below

 

2.png

 

 


Do you need data that will be processed by other programs or a report (people read these).

You want does not appear to be a data set but a report and Proc report can get the values pretty close with the Type and Num variables as Across variables with code and name as Group variables.

But without an actual data set I am not going to try to dummy data to match.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 4 replies
  • 2318 views
  • 4 likes
  • 5 in conversation