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

bar graph

Hi all,

In my bar graph, how can i show the values and percentage both together on bar.(By using values on data point)

thanks

8 Replies
MK_QSL
MVP
MVP

Consider you have Customer, Sales and Purchase data...

Create a Bar Chart


Dimension

Customer


Expressions

1) SUM(Sales)

Tick Bar and Untick Values on Data Points

2) 'Sales : '&SUM(Sales) & CHR(10) & NUM((SUM(Sales)-Sum(Purhcase))/SUM(Sales),'#,##0.00%')

Untick Bar Chart

Tick Values on Data Points

Change Dimension and Expressions according to your database and requirements..

Not applicable
Author

thanks for effort but i couldnt follow..

can u help with simple solution

thanks

ashfaq_haseeb
Champion III
Champion III

Hi,

Have a look at attached application.

Regards

ASHFAQ

MK_QSL
MVP
MVP

Check enclosed file...

engishfaque
Specialist III
Specialist III

Dear Deepak,

Chart Properties > Expressions > Check to "Relative" Check box.

Kind regards,

Ishfaque Ahmed

MarcoWedel

Hi,

one solution:

QlikCommunity_Thread_132351_Pic1.JPG.jpg

QlikCommunity_Thread_132351_Pic2.JPG.jpg

hope this helps

regards

Marco

Not applicable
Author

i cant understand the expression

MK_QSL
MVP
MVP

Dual Function will have two values...
Dual(A,B).... A is Text and B is Numeric

Sum(Sales) & Chr(10) & Num(Sum(Sales) / Sum(Total Sales),'##0.0%')    Text

need to divided into

Sum(Sales)               ==> Total Sales for each Category

Sum(Sales) / Sum(Total Sales)     ==> Total Sales for each Category / Total Sales

Num(Sum(Sales) / Sum(Total Sales),'##0.0%')  ==> Convert above in to %

Chr(10) will make another line./ New Line Feed...

Sum(Sales)      Numeric

Hope this helps....