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

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