Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

How to use excel file to store operators and use it in BODS

$
0
0

Hi

I am using an excel file to store a couple of values which could chage dynamically, both values and operation.

 

Eg: Excel file

 

Col A  Col B  Col C

High   1         aa

Med    2        bb,cc

Low    3,4      dd,ee

 

 

Am using this excel file as a lookup to define my transaction data to categorize them into High, Low or Med.

 

Since the business might need to change the Col B and Col C values dynamically and they also wish to have the operators changed in the futere (like now they have if TRX record in Col B then High, in future this could change to TRX record NOT in Col B then High)

 

So I was thinking if I could add extra column before the excel file columns to capture the operators and then use an ifthenelse statement in my BODS code to see if the TRX records fall into any of the 3 conditions.

 

Eg: Excel file

 

Col A Col B_operator   Col B  Col C_Operator   Col C

High           =                  1        <>              aa

Med            in                 2         not in         bb,cc

Low         not in              3,4        in             dd,ee

 

Base on this example in my TRX record I have to check for each record if my TRX.ColB = Excel.Col B and TRX.ColC <> Excel.ColC

 

 

Is there any way I could achieve this in BODS?

 

Cheers!


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>