Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Interval Match Help

Hi,

I have attached a sample of data where I have perfomed an interval match.  The issue I have is where I try and sum values; it appears to sum the total and then multiply by lines contained within a dropped table.

In the example 'type' A is showing 41360 when it should be 8272.  It seems to be a multiple of 5 which is the same as the number of lines of data I have.

Can anyone suggest how I can fix this?

Many thanks

1 Solution

Accepted Solutions
mphekin12
Specialist
Specialist

Try removing the 'Counter' field and then doing a SELECT DISTINCT from your final Cost table.

View solution in original post

7 Replies
Miguel_Angel_Baeyens

Hi Ted,

It seems that the JOINs you are performing after the IntervalMatch() are creating a higher number of rows instead of the number it should be. As a general rule, I'd suggest you to use in all cases LEFT JOIN.

Hope that helps.

Miguel

Not applicable
Author

Hi Miguel,

Thanks for your response.

I have just checked and I had an INNER join as well as a LEFT join.

I have changed both to LEFT and it doesnt seem to make any difference.

Any other ideas would be greatrly appreciated.

Many thanks

Not applicable
Author

I have attached the same app with using the left join.

Still can't get this to work.

Not applicable
Author

I added a counter and it does confirm that the data appears to be repeted 5 times (shown below).  I have tried various joins and still cannot resolve this.

Does anyone have any other technique that can be used?

Many thanks

totalcostpolstartpolendCOUNTERtype2
685004/12/201103/12/201221A
685004/12/201103/12/201222A
685004/12/201103/12/201223A
685004/12/201103/12/201224A
685004/12/201103/12/201225A
004/12/201103/12/201216A
004/12/201103/12/201217A
004/12/201103/12/201218A
004/12/201103/12/201219A
004/12/201103/12/201220A
004/12/201103/12/20121A
004/12/201103/12/20122A
004/12/201103/12/20123A
004/12/201103/12/20124A
004/12/201103/12/20125A
142204/12/201103/12/20126A
142204/12/201103/12/20127A
142204/12/201103/12/20128A
142204/12/201103/12/20129A
142204/12/201103/12/201210A
004/12/201103/12/201211A
004/12/201103/12/201212A
004/12/201103/12/201213A
004/12/201103/12/201214A
004/12/201103/12/201215A
mphekin12
Specialist
Specialist

Try removing the 'Counter' field and then doing a SELECT DISTINCT from your final Cost table.

Miguel_Angel_Baeyens

Hi,

In the Infl.xls file where you define the ranges, you have more than one range for the same dates, and that is what is causing that issue. You will need to pass another key field to the IntervalMatch() but I don't know which one.

Hope that helps.

Miguel

Not applicable
Author

Thanks for all help; I used Load Distinct.

Many thanks