Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

cacosta35
Contributor II

Comparing 2 text fields in Concatenated table

Hello!

I'd  like  to create a new column that compares 2 text fields in a concatenated table that varies by week (Previous and Current week),  I need to determine if ShipStatus has changes or not from previous and current week. Is this going to be a calculated dimensional field?  I tried using the expression but it came out 2 columns for each week.

Pls. see example below :

Thank you in advance.

8 Replies

Re: Comparing 2 text fields in Concatenated table

So, You want to compare only ShipStatus got changed into new one when week got changed? Does it?

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
cacosta35
Contributor II

Re: Comparing 2 text fields in Concatenated table

Yes, Anil

Rgds

Re: Comparing 2 text fields in Concatenated table

Do you have 2 Dates only? Will you attach application to investigate

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

Re: Comparing 2 text fields in Concatenated table

Share the sample data ...that will help us to get you the solution

cacosta35
Contributor II

Re: Comparing 2 text fields in Concatenated table

Anil,

Every week, it will add new data.  However, I will only use the current week and the previous week  as comparison.    Thus, for this week, I would need the 12/18 and 12/11 records. Anyway, pls. see attached sample file.  Hope this helps.

Rgds

cacosta35
Contributor II

Re: Comparing 2 text fields in Concatenated table

Hi!  Avinash,

Pls. see attached.  Hope this helps.

Tks.

Re: Comparing 2 text fields in Concatenated table

I've attached for you for speed response. Can you tell me what you are going to achieve from here?

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
cacosta35
Contributor II

Re: Comparing 2 text fields in Concatenated table

Hi  Anil,

I  need only the latest week and the previous week (12/11 and 12/18).  Thus, need to drop the week 12/04.  After this, need to add a new column  "Change Status"  for comparing  the shipstatus between the previous and current week.  If both weeks have the same Shipsatus, it will be flagged as "No change", Otherwise, "Change".

Btw I take out the Datekey field from the dimension in your attached so the ShipStatus will be aligned with the 2 weeks.

Tks,