DATA Step, Macro, Functions and more

Product Category vs Product Category matrix output required

Reply
Contributor
Posts: 52

Product Category vs Product Category matrix output required

Hi Everyone,

 

Please note that i have a requirement for obtaining the following output in SAS (Please refer to the excel file attached):

 

Business Problem: Customer level data has various columns providing info around cust_id, product_category which the customer owns. We have to create Output structure using SAS, to check, let`s say a customer possessing a Credit card, which other products he owns. Hence, a CC customers (P1) , owning Auto (P2), PLL(P3), EFS (P4), and so on.

 

Thanks

 

Regards,

 

 

Business Problem: Customer level data has various columns providing info around cust_id, product_category which the customer owns. We have to create Output structure using SAS, to check, let`s say a customer possessing a Credit card, which other products he owns. Hence, a CC customers (P1) , owning Auto (P2), PLL(P3), EFS (P4), and so on.
                                   
  CC Auto PLL EFS BT HM HE RE OT                
CC                                  
Auto                                  
PLL                                  
EFS                                  
BT                                  
HM                                  
HE                                  
RE                                  
OT                                  
                                   
                                   
                                   
    Base population                            
    Redundant information                          
    Useful Information                            
Super User
Posts: 11,343

Re: Product Category vs Product Category matrix output required

Posted in reply to dkanand86

Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.

 

Have you read the data into SAS? If so you can use information at this link: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... to create the text of a data step that can be posted here to recreate the data.

 

 

Super User
Posts: 10,041

Re: Product Category vs Product Category matrix output required

Posted in reply to dkanand86
You want output it as a picture or a excel file ?
And you didn't post any data yet .

http://blogs.sas.com/content/iml/2014/08/20/heat-map-in-sasiml.html


Ask a Question
Discussion stats
  • 2 replies
  • 258 views
  • 0 likes
  • 3 in conversation