Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dual Function

Dual (

Country & '-' &

Num(Sum(sales), '#,##0') &

Repeat(chr(13)&chr(10), rank(sum(sales)) -6),

sum(sales)

)

Plzz explain me this expression m not getting what is happening within this expression.

Thanks & Regards,

Qliker

2 Replies
Not applicable
Author

the function dual recive 2 values. 1 number (used on all calculations) 1 text(used only for show information for user).

in this case if you use a pie chart. show de sum of country, the reapt dont make number stway thogeder...

Anil_Babu_Samineni

=Dual (

Country & '-' &

Num(Sum(sales), '#,##0') &

Repeat(chr(13)&chr(10), rank(sum(sales)) -6),

sum(sales)

)

As i understand, This requirement is for Calculate the Rank - 6 for Sales(If current Rank is 10, Requirement need 4th Rank)

Repeat function is repeated values. Here, Chr(13) is Spaces and Chr(10) is Next line

Might be Clear

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