Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Max75
Contributor II
Contributor II

Concat dinamics string

Hello everyone

I would have a need to create a dynamic dimension that will couple existing strings to me.

The table is sorted by Number and event_id, and I would expect the data as in the result column

For each event_id I would expect the Result column to report the status of the string + the status of the next column.

 

Number event_id Status       Result
7001044391 3416040 DRAFT       DRAFTIPT
7001044391 3450610 IPT       IPTIPF
7001044391 3450663 IPF       IPFIPT
7001044391 3551672 IPT       IPTIPF
7001044391 3551700 IPF       IPFIPD
7001044391 3551941 IPD       IPDIPT
7001044391 3578817 IPT       IPTIPF
7001044391 3578842 IPF       IPFAPP
7001044391 3579753 APP       APPTBP
7001044391 3785133 TBP       TBPSIG
7001044391 3793140 SIG       SIG
Labels (1)
1 Solution
6 Replies
MatheusC
Specialist II
Specialist II

There is also a way to do this via script with
example of the peek function sorting with Order by desc

peek('campo',-1)

MatheusC_2-1706291943989.png

 

 

MatheusC_3-1706291952848.png

 

Regarts,
Matheus

 

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
MatheusC
Specialist II
Specialist II

@Max75 
Did you get the solution?

Close the topic with the solution met and leave a like if you found it useful.

Thank you!

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Max75
Contributor II
Contributor II
Author

Hi Mark

I certainly wasn't very clear. My request was referring to a set analysis and not in script.
Below might work, but it creates an unfilterable measure, whereas I should be able to filter for a given parameter.

barnabyd
Partner - Creator III
Partner - Creator III

G'day @Max75,

Both solutions provided above by @maxgro and @MatheusC will give you the output column you need but if you want it to be a filter then it must be a dimension in the table. Therefore, it's best to pre-calculate the column in the load script as in @MatheusC's solution.

Cheers, Barnaby.

Barnaby Dunn
BI Consultant
Max75
Contributor II
Contributor II
Author

thx