Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Displaying values - Combo chart on DataPoints

Hello,

I want to display the Total values on top of each barwhich i have acheieved by using using an expression and making it invisible. However when i introduce a line graph, the values for the Bars are being shown for the line graph's data points which is wrong. Please help to resolve this issue.

Combo Chart Value display.JPG

Combo Chart Value display1.JPG

19 Replies
sunny_talwar

Awesome, I am glad it all worked out.

I would request you to close this thread by marking correct and helpful response as this will be helpful for other visitors in the future.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny

Not applicable
Author

This seems to work if i dont apply any Dimension limits, but when i restricted the Seller to show only the Top 5 , the Total percentage shrinks.

I would want the Percentage for Australia to be at Same, and the bar should show the Top 5 Sellers with percentage and the rest % should be under "Others". Why does not it work if i just apply the Dimensions limit?

Thanks.

sunny_talwar

Would you be able to put down the numbers you want to see for each of the two countries in a table form so that I can see what you actual want?

Not applicable
Author

I just noticed that the FirstSortedValue function does not pick the expected value, i want the most recent value according to the dates to be picked for every seller. For example, for trhe Seller 525(CC), the most recent value is 2410 which is on 6th Oct 2016 and that should be picked.

    

Date0-3031-6061+TotalBalanceBalCtrySellerSK
21-Jan-161827.752558.852924.47311Aus525
11-Feb-161557.52180.524926230India525
24-Mar-16880123214083520Aus525
14-Apr-16851.51192.11362.43406India525
2-Jun-16890124614243560India525
30-Jun-16851.51192.11362.43406Aus525
8-Sep-16583.25816.55933.22333India525
6-Oct-16602.5843.59642410Aus525

And this value should be used for calculating the percentage.

(Most recent Balance of Seller)/(Most Recent Balance of Entire Country).

Most recent balance of the Country will be the sum of balances across Sellers at their most recent dates, which will vary for each seller.

Please let me know if you need more information.

Thanks.

Not applicable
Author

Attaching the qvw file here.

Combo chart Qn1.1.jpg

sunny_talwar

Solving the first part of the issue to pull the most recent value. Try this:

FirstSortedValue(Aggr(Sum(TotalBalance),Date,BalCtry,Seller),-Aggr(Date,Date,BalCtry,Seller))

Working on the % part now

sunny_talwar

Is this the goal?

Capture.PNG

Not applicable
Author

Thanks for the solution,Howeveri will not be able to group it on Dates only as I have to pick the recent value based on the Fiscal Months, that is the reason for using Fiscal_day_of_month in the Aggr.

FirstSortedValue(Aggr(Sum(TotalBalance),Date,BalCtry,Seller),-Aggr(Fisc_day_of_month,Date,BalCtry,Seller))/Sum(TOTAL <BalCtry> Aggr(FirstSortedValue(Aggr(Sum(TotalBalance),Date,BalCtry,Seller),-Aggr(Fisc_day_of_month,Date,BalCtry,Seller)), BalCtry, Seller))

sunny_talwar

The issue is that Fisc_day_of_month is smallest here:

Capture.PNG

So FirstSortedValue() function will pick the second last row based on Fisc_day_of_month. You need to either use Fisc_Period or Date to meet your requirement. Using Fisc_day_of_month, you will never meet you requirement.

Best,

Sunny

Not applicable
Author

Is it possible to display the percentages on every Segment?

And can we fix the "Others" with a persistent color part to be at the top at all times?

And this chart should not react to any of the Selections in the Seller dimension.

Thanks.