Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rashmithakur
Contributor II
Contributor II

How to concat the current and previous values in a single cell.

Hi All,

IDweekweek_diffmissed week
1121 
1153week12 to week 15 
1130 

Requirement:
If the week_diff >2, then missed_week should have the output from week column as:  
week12 to week 15.

I am not getting the output when I am trying to concat the peek value and the current value ( 12, 15) and ordering by ID.

Can someone help on this.

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar

If you're trying this in the front end instead of in the load script then try the Above() function:

If( week_diff>2, 'week ' & above(week) & ' to week '  & week)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

If you're trying this in the front end instead of in the load script then try the Above() function:

If( week_diff>2, 'week ' & above(week) & ' to week '  & week)


talk is cheap, supply exceeds demand
rashmithakur
Contributor II
Contributor II
Author

Dear Gysbert,

Thanks for your quick response. I tried your proposed script in load editor but with the peek function and it worked.

Thanks a lot