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

Hi

 

I want to piviot the below data in excel on export.

Any ideas?

I know how to use proc export etc to do a data cump in excel but how would I pivot the data?

 

 

Col AAgeQtrGenderTypeAmt
E143Quarter 3 FIP2
E145Quarter 3 MIP1
E146Quarter 3 FDC10
E147Quarter 4FIP1
E148Quarter 4MDC1
E153Quarter 3 FIP2
E155Quarter 3 MIP1
E156Quarter 3 FDC10
E157Quarter 4FIP1
E158Quarter 4MDC1

Expected Output

 

 

Sum of Amt QtrGenderType         
  Quarter 3     Quarter 3  TotalQuarter 4   Quarter 4 TotalGrand Total
  F F TotalMM Total FF TotalMM Total  
Col AAgeDCIP IP  IP DC   
E143 22  2     2
 5   111     1
 610 10  10     10
 7      11  11
 8        1111
E153 22  2     2
 5   111     1
 610 10  10     10
 7      11  11
 8        1111
Grand Total 2042422262222430
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

ODS EXCEL + PROC TABULATE 

View solution in original post

1 REPLY 1
Reeza
Super User

ODS EXCEL + PROC TABULATE 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 699 views
  • 1 like
  • 2 in conversation