Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate creating loop causig unwanted results...

I have two tables Incidents as the follwing

1. Union and

2. Tagged incidents

and both the above table are having the incident open_date_time

and have created a master calendar with Unions open_date_time which is working fine, however the same is not when tried concatenating the open_date_time of the Union with the Tagged incidents.

The script is as follows, when executed causing warnings as Loop are been creating which can cause unwanted results.

 

Union:

LOAD Id as Ticket_Id,
Open_DateTime,
MakeDate(year(Open_DateTime),Month(Open_DateTime),day(Open_DateTime)) as Date,
FROM
..\Data\Raw QVDs\Union(
qvd);

 

[Tagged Incidents]:

LOAD Id,
Id as [Problem Id],
Open_DateTime,
FROM
..\Data\Raw QVDs\Tagged_Incidents(
qvd);

when tried to concatenate two dates using the below script getting un desired results,

UNQUALIFY *;
DateLink:
LOAD

Distinct Union.Open_DateTime,
MakeDate(year(Union.Open_DateTime),Month(Union.Open_DateTime),day(Union.Open_DateTime)) as Date

Resident Union;
Concatenate(DateLink)
LOAD

Distinct

[Tagged Incidents.Open_DateTime],
MakeDate(year([Tagged Incidents.Open_DateTime]),Month([Tagged Incidents.Open_DateTime]),day([Tagged Incidents.Open_DateTime])) as Date

Resident

[Tagged Incidents];

Please suggest as how to avoid the circular reference and loops...

1 Reply
swuehl
MVP
MVP

I assume your first two tables are fully qualified, right?

So there is no direct link between these two tables and no link to another table other than DateLink?

It's quite hard to see the issue with just the script snippet. Please post a screen shot of your table viewer, a more complete script export or at best a small sample app that demonstrate your issue (you can / should replace DB loads with some INLINE table mock up data then).