Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Solved

Solved

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Table:

LOAD ACCOUNT,

    ACTIVITY,

    GROUP1,

    GROUP2

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @1);

Link:

LOAD Distinct *;

LOAD *,

  If(ACTIVITY = '2XX', 199 + IterNo(),

  If(ACTIVITY = '3XX', 299 + IterNo(), ACTIVITY)) as ACTIVITY_LINK

Resident Table

While IterNo() <= 100;

DROP Table Table;

Left Join(Link)

LOAD ACCOUNT,

    ACTIVITY as ACTIVITY_LINK,

    AMOUNT

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @2);

FinalTable:

LOAD ACCOUNT,

  ACTIVITY,

  GROUP1,

    GROUP2,

    Max(AMOUNT) as AMOUNT

Resident Link

Group By ACCOUNT, ACTIVITY, GROUP1, GROUP2;

DROP Table Link;

Capture.PNG

View solution in original post

3 Replies
sunny_talwar

Like this?

Table:

LOAD ACCOUNT,

     ACTIVITY,

     GROUP1,

     GROUP2

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @1);

Link:

LOAD Distinct *;

LOAD *,

  If(ACTIVITY = '2XX', 199 + IterNo(),

  If(ACTIVITY = '3XX', 299 + IterNo(), ACTIVITY)) as ACTIVITY_LINK

Resident Table

While IterNo() <= 100;

DROP Table Table;

FACT:

Right Keep (Link)

LOAD ACCOUNT,

     ACTIVITY as ACTIVITY_LINK,

     AMOUNT

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @2);


Capture.PNG

microwin88x
Creator III
Creator III
Author

Thank you Sunny T!

Is there any way to omit those values for example Rows 4/5/12/etc?

Because those are amounts that I not need.

sunny_talwar

Try this:

Table:

LOAD ACCOUNT,

    ACTIVITY,

    GROUP1,

    GROUP2

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @1);

Link:

LOAD Distinct *;

LOAD *,

  If(ACTIVITY = '2XX', 199 + IterNo(),

  If(ACTIVITY = '3XX', 299 + IterNo(), ACTIVITY)) as ACTIVITY_LINK

Resident Table

While IterNo() <= 100;

DROP Table Table;

Left Join(Link)

LOAD ACCOUNT,

    ACTIVITY as ACTIVITY_LINK,

    AMOUNT

FROM

[https://community.qlik.com/thread/218639]

(html, codepage is 1252, embedded labels, table is @2);

FinalTable:

LOAD ACCOUNT,

  ACTIVITY,

  GROUP1,

    GROUP2,

    Max(AMOUNT) as AMOUNT

Resident Link

Group By ACCOUNT, ACTIVITY, GROUP1, GROUP2;

DROP Table Link;

Capture.PNG