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

sum and percentage in a same bar chart

Hi any one Please help me with this fix...

I have an bar chart in that i am giving country as dimension and  =sum(amount) as expression..so that I am getting an bar chart.

I want a relative percentage of expression in the same chart

Eg :I want a relative percentage of germany in near to the value 39.48L..

thanks in advance..

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Just add a bit to it to display both values:

dual(num(sum(Sales)/sum(total Sales),'0%') & chr(10) & sum(Sales), sum(Sales))

or maybe: dual(sum(Sales) & ' (' & num(sum(Sales)/sum(total Sales),'0%') & ')', sum(Sales))


talk is cheap, supply exceeds demand

View solution in original post

8 Replies
Gysbert_Wassenaar

You can use the dual function. See attached example.


talk is cheap, supply exceeds demand
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file, hope it helps you.

Regards,

Jagan.

Not applicable
Author

Thanks

But I need a Both percentage value and sum of value in a same bar.

Percentage value in a bracket and sum of value is near to that.

Not applicable
Author

Hi Jagan thanks fr yur reply

But I want a both values in same chart

Gysbert_Wassenaar

Just add a bit to it to display both values:

dual(num(sum(Sales)/sum(total Sales),'0%') & chr(10) & sum(Sales), sum(Sales))

or maybe: dual(sum(Sales) & ' (' & num(sum(Sales)/sum(total Sales),'0%') & ')', sum(Sales))


talk is cheap, supply exceeds demand
jagan
Luminary Alumni
Luminary Alumni

PFA file for solution.

Regards,

Jagan.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Why dont you show the both value when you take cursor on that, something like text popup.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thank you for your reply

There is any other way apart from  dual function.?