Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a Free text field in qliksense
Data - configuration and performance of Integration with Qliksense, we will do first
Data in Qliksense table dislaying as - configuration and performance{color:#4c9aff} of Integration{color:#4cff} with Qliksense, We will do first{color}
Expected result - configuration and performance of Integration with Qliksense, we will do first
I want to search for these kind of {color:#4c9aff} & {color:#4cff} & {color} color code in my description field and replace it with blanks.
just adjust previously provided expression with {color:
=replace( replace( replace( replace([your_data_field] , TextBetween([your_data_field], '{color', '}', 1), ''),
TextBetween([your_data_field], '{color', '}', 2), '') , TextBetween([your_data_field], '{color', '}', 3), '') , '{color}', '')
Hi, maybe try something like this:
=replace (replace( replace([your_data_field], '{color:#4c9aff}', '') , '{color:#4cff}', ''), '{color}', '')
Yes but This is not dynamic right, Is it possible to search anything that has '{colo*' AND REPLACE IT WITH '' (Blanks)
If they have used any other color, then new color code {'color:45dff4f'} will show up right so, looking for dynamic solution
Kindly try on below expression ,
If(Wildmatch(FiledName,'colo*'),null(),FiledName) as [New Value],
Yes, it is not dynamic, but, if there are only 3 possible {...} text places in your data_field, you can replace any text between braces {} to blanks (and {} itself) with something like this:
=replace( replace( replace( replace([your_data_field] , TextBetween([your_data_field], '{', '}', 1), ''), TextBetween([your_data_field], '{', '}', 2), '') , TextBetween([your_data_field], '{', '}', 3), '') , '{}', '')
Data in Qliksense table dislaying as - configuration and performance{color:#4c9aff} of Integration{color:#4cff} with Qliksense, We will do first{color}
Expected result - configuration and performance of Integration with Qliksense, we will do first
I just want to remove/replace these kinds of {color:#4c9aff} color codes with ''(blanks)
the above syntax will completely eliminates the data.
this is partially correct, But I want to do this dynamically anything which has '{color in it
just adjust previously provided expression with {color:
=replace( replace( replace( replace([your_data_field] , TextBetween([your_data_field], '{color', '}', 1), ''),
TextBetween([your_data_field], '{color', '}', 2), '') , TextBetween([your_data_field], '{color', '}', 3), '') , '{color}', '')
if there are morethan 3 then? we never know how many such possibilities are there? Can this be achieved?
I don't know any way how to know how many {color} possibilities are in the sentence. But you can add more textbetween() parts, as each are taking specific braces in text (it is defined in 3rd parameter of this formula), to be safe each {color} is removed.