Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Saravanan_Desingh

String Function inside Set Analysis

I have the below Table

A110
B2.58
c32
B2264
C3890
D45

I am expecting the below result

B2272
C3892

Basically B2.5 have to be replaced with B2 and c3(lower case) has to be replaced with C3.

I tried the below Set Analysis. But not working.

Count({$<[Dim1]={'=Replace(B2.5,B2)',"=Replace(c3,C3)"}>} Dim1)

We can replace this in the LOAD statement. But I don't want to change the original data. I only want to do it thru UI Objects. Can you please suggest any solutions here?

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

in this case you can use a calculated dimension

something like

upper(left(Dim1,2)) as your dimension

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

in this case you can use a calculated dimension

something like

upper(left(Dim1,2)) as your dimension

Saravanan_Desingh
Author

Hi Liron. Thanks for your response. I was able to replace the values using Calculated Dimension as below.

=Replace(Replace(F1,'B2.5','B2'),'c3','C3')

But I am getting the below output

=Replace(Replace(F1,'B2.5','B2'),'c3','C3')Sum(F2)
A110
B2272
C3892
D45

If I tried to filter using the below expression

Sum({$<F1={"B2",C3}>} F2)

I am getting this.

=Replace(Replace(F1,'B2.5','B2'),'c3','C3')Sum({$<F1={"B2",C3}>} F2)
B2264
C3890

It looks like the calculation done at Dimension level is not getting reflected in the Expression.