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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
lord_zeus
Partner - Contributor III
Partner - Contributor III

Concat chart function make doubles

Hello!

I have a problem with concat function. I'm try get string with top 4 countrys by sels in string with comma delimitr. 

But i need sort it to use SubField after in setAnalysis... so, if i dont use sort inside concat it work fine, but if i user sort expression function (concat) gives my not sort string + the same string sort...

2019-12-19 13_48_46-Window.png2019-12-19 13_49_07-Window.png2019-12-19 13_49_23-Window.png2019-12-19 13_49_32-Window.png

What i do wrong?

Labels (3)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

may be this

Concat({<Country = {"=Rank( Sum( Sale))<3"}>} distinct Country,', ', -aggr(nodistinct Sum(Sale),Country))

View solution in original post

17 Replies
Anil_Babu_Samineni
MVP
MVP

Perhaps this?

Match(country, $(=Concat(distinct {<country={"=Rank($(vDep))<5"}>} Chr(39) & country & chr(39))))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
lord_zeus
Partner - Contributor III
Partner - Contributor III
Author

This dont work for me... empty string return...

Anil_Babu_Samineni
MVP
MVP

What it is returning in Text box?

Concat(distinct {<country={"=Rank($(vDep))<5"}>} Chr(39) & country & chr(39))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
lord_zeus
Partner - Contributor III
Partner - Contributor III
Author

now i use in function subfield index 5,6,7,8... becouse 1,2,3,4 - not sorting string...bot im wont deal with the problem

lord_zeus
Partner - Contributor III
Partner - Contributor III
Author

2019-12-19 14_16_05-Window.png

Anil_Babu_Samineni
MVP
MVP

Something this then?

Match(country, $(=Concat(distinct {<country={"=Rank($(vDep))<5"}>} Chr(39) & country & chr(39), Chr(44))))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
lord_zeus
Partner - Contributor III
Partner - Contributor III
Author

nop, epty string returns

Anil_Babu_Samineni
MVP
MVP

Where you are trying this? Is that something you are using in Sort expression?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
lord_zeus
Partner - Contributor III
Partner - Contributor III
Author

Im using in text area. Nothing special, something like Sum(sales)