BookmarkSubscribeRSS Feed
deleted_user
Not applicable
First of all, Im not really strong in SQL coding, so I try to use Enterprise Guide for everything.

The dataset I'm trying to analyse has four variables: 'quantity', 'transaction id', 'product' and 'store'. I'm asked to find out which products are sold alone, that is with no other products involved in the transaction

As I see it I can disregard the variable quantity, since it doesn't matter whether a transaction consists of 100 or 1, since it is still the same product being sold.I can also disregard 'store' since in this case it's not important where the product is being sold...

So I have filtered out 'transaction id and 'product' and I would like to create a filter, that removes the transactions (transaction id) with more than ONE product included, how can that be done?
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
I believe you would want to count selected rows, also group by transaction_id and filter when a given transaction involved more than one (counted row).

Scott Barry
SBBWorks, Inc.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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