Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

URGENT

$
0
0

Hi ,

I faced this issue earlier, but had a work round, which is not going to work provided I use to have the lookup results to be used in ifthenelse logic.

 

Below are the screenshots, of a test dataflow with output as below. The column BOOKING_DATE_KEY has a lookup_ext function which compares LDATE(  In decimal(10,0)  ) with FULL_DATE(datetime) of DIM_DATE Dimension.

11.png

The query lookup function looks like as below:

 

lookup_ext([SDDataMartDev.DBO.DIM_DATE,'PRE_LOAD_CACHE','MIN'], [DATE_KEY],[4466],[FULL_DATE,'=',TO_DATE(TO_CHAR(TRAPEZE_BOOKING.LDATE,'YYYYMMDD'),'YYYYMMDD')]) SET ("run_as_separate_process"='no', "output_cols_info"='<?xml version="1.0" encoding="UTF-8"?><output_cols_info><col index="1" expression="no"/>

</output_cols_info>' )

 

It give me the key of 20120118 in booking_date_key

33.png

 

Now when I try to have ifthenelse logic to populate this lookup value, it gives me the default value of lookup and not the value which we stored in BOOKING_DATE_KEY.

22.jpg

 

Any Idea how to use lookup value in ifthenelse  in same query or subsequent query?


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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