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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
WiscoSippi
Creator
Creator

Combined Field Values Not Combining Properly

Hi!

This code generates the first bar chart which is almost perfect. I want to combine two of the values, 'SpecialOctave' and 'OverloadSoundTestAdder'. See below.

let vChrs = chr(32)&chr(160)&chr(10)&chr(13)&chr(9);
if(isnull([Sound Test_WESSOUNDTEST Description]),
	'None',
	purgechar([Sound Test_WESSOUNDTEST Description],'$(vChrs)')) as [WESSOUNDTEST_Consolidated],

 original_soundtest.JPG

Here's the code I wrote to combine the values and the result I'm getting which is NOT what I want. Any thoughts?  Source data is attached.

let vChrs = chr(32)&chr(160)&chr(10)&chr(13)&chr(9);
if(isnull([Sound Test_WESSOUNDTEST Description]),
	'None',
     if(match(purgechar([Sound Test_WESSOUNDTEST Description],'$(vChrs)'),'SpecialOctave','OverloadSoundTestAdder'),
     	'SpecialOctave_OverloadSoundTestAdder',
		sound_test_tmp
    )
    ) as [WESSOUNDTEST_Consolidated],

update_soundtest.JPG

 

 

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry
0 Replies