Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a variable with list of values concatenated.
vNum= 5,7,8,9,2,3,1
I need to sort them and store in an another variable. How to do?
Expected result: 1,2,3,5,7,8,9
Perhaps this
=concat( mid(vNum, ValueLoop(1, len(vNum)),1),'',mid(vNum, ValueLoop(1, len(vNum)),1))
presummably, you are concatenating the values of some field (this is Qlik after all), you can specify the sort order in the concat function:
https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/St....
Perhaps this
=concat( mid(vNum, ValueLoop(1, len(vNum)),1),'',mid(vNum, ValueLoop(1, len(vNum)),1))
How this will work if i have 2 digit numbers? please share me the expression.
Hi Anil Babu,
I used your concept and used the subfield function to split the values. It worked for me to order more than 1 digit numbers. Thanks a lot.
Hi Edwin,
Thanks for your reply. When I used the sort weight option, The concatenate result has duplicate values .(Sometime the same bucket appears 2 times)