Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
cacosta35
Creator II
Creator 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
Anil_Babu_Samineni

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
Creator II
Creator II
Author

Yes, Anil

Rgds

Anil_Babu_Samineni

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)
avinashelite

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

cacosta35
Creator II
Creator II
Author

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
Creator II
Creator II
Author

Hi!  Avinash,

Pls. see attached.  Hope this helps.

Tks.

Anil_Babu_Samineni

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
Creator II
Creator II
Author

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,