Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
arethaking
Creator II
Creator II

concatenation of two expressions in a chart

Hi,

My chart is showing Sales by region. I want to show Sales & % of Sales for each region as data values.

I am using Sales & % of Sales expression in dual function. But it is not working.

dual(sum(Sales)&'-'&sum(Sales)/sum(TOTAL Sales),sum(Sales))

I want to show 'Data Values' for 4 Regions?

Please help me.

Region% and Sales
GERMANY5.45% - 392,487
JAPAN18.63% - 1,341,699
UK17.67% - 1,272,507
USA58.25% - 4,195,256
1 Solution

Accepted Solutions
swuehl
MVP
MVP

2017-10-22 12_06_35-QlikView x64 - [Data Visualization].pngMaybe like attached (note the format changed to expression default, too, on number tab)

View solution in original post

5 Replies
swuehl
MVP
MVP

2017-10-22 12_06_35-QlikView x64 - [Data Visualization].pngMaybe like attached (note the format changed to expression default, too, on number tab)

rubenmarin

Hi Aretha, uncheck the 'relative' check box to make it work this way.

Another option is add 2 expression: one in % and other with the value. You can show one value in chart and the ithe on the legend.

its_anandrjs

Try this with add another expression and set it as Text as Pop UP

sergio0592
Specialist III
Specialist III

Try with :

dual(sum(Sales)&Chr(10)&num(sum(Sales)/sum(TOTAL Sales),'# ##0,0%') ,sum(Sales)) 

Anil_Babu_Samineni

Hi aretha,

I assume, this is first issue. Can you re calculate with num() for first argument

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