Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
crystles
Partner - Creator III
Partner - Creator III

IntervalMatch not working, says "Field not found"

I am trying to use the IntervalMatch function to create a Bridge table for my Slowly changing dimensions, like in this example.

Slowly Changing Dimensions

However, it keeps telling me "Field not found" for the interval match. If I remove the interval match and just load the table, it will run, but for some reason it will not load the interval match.

Does anyone know why this would happen?

Here is my code.

ABC_ChangeCodes:
LOAD ABC_PartNumber as PartID,
ABC_ChangeCode,
Date#(FromDate) as FromDate,
Date#(ToDate) as ToDate,
ABC_PartNumber &'|'& FromDate &'|'& ToDate as KEY_PartID_Interval   //BridgeKey
FROM
data\ABC_ChangeCodes.qvd]
(
qvd);

Counts:
LOAD Distinct
  
QC_DATE,  
   ABC_PartNumber as TmpPartID,
   ABC_PartNumber &'|'& QC_DATE as KEY_PartID_CountDate  //BridgeKey
FROM
Data\QtrCounts.qvd]
(
qvd)
Where QC_Count <> 0
;

TmpBridgeTable:
IntervalMatch(QC_DATE,TempPartID) // THIS IS THE LINE THAT KEEPS FAILING
LOAD Distinct
FromDate,
ToDate,
PartID as TmpPartID
Resident ABC_ChangeCodes;

1 Solution

Accepted Solutions
aarkay29
Specialist
Specialist

May be because

TmpPartID and TempPartID  are spelt differently

View solution in original post

2 Replies
aarkay29
Specialist
Specialist

May be because

TmpPartID and TempPartID  are spelt differently

crystles
Partner - Creator III
Partner - Creator III
Author

Yes, it was the typo that was causing it to fail. I guess my eyes just aren't what they used to be, lol

Thanks!