Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Can you use an IF statement in a filter?

$
0
0

Hi Chaps

 

I have a dataset I'm receiving each month where I have two similar fields - Reporting Period and Month.  In this data set, I am effectively getting one month of NEW transactions each month and eleven months of prior period transactions.  However, the prior period transactions may be different to what's been received in the prior periods as users of the source system have the ability to overwrite existing records.

 

What I'm trying to do with the dataset is to split the transactions into one of two groups - effectively, if they're NEW transactions, they follow a single process.  If they're prior period transactions, they are compared to what we've received previously to determine if an adjustment is required.

 

How I'd like to do this is using a filter, which effectively evaluates this expression as true or false for each transaction:

 

IF [REPORTING PERIOD]=[MONTH} then 'TRUE' else 'FALSE' ENDIF

 

I know I could use a formula tool and add this in as an extra field, but honestly, I was wondering if it's possible to use an actual filter tool to accomplish this?

 

Cheers

 

Lisa

 

 

 

 

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles