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

Expression to sum the values on a bar chart

Hi all,

bar.PNG

I want to plot a bar chart, date as X axis and  sum of objects per date as Y-axis.. But, I would like to sum the objects of distinct dashboard names ..

I mean, on any date, if any dashboard is repeated, I would like to take the object count only once

can any one help me to do that?


I hope, I tried to explain the problem.. Please let me know, if any clarification needed


Thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Can you let me know, How Objects associative in Qlikview object? Can you share the image for that?

Updated: (Try This)

=Sum(aggr( sum(Distinct objects),Dashboard))

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

View solution in original post

13 Replies
tresesco
MVP
MVP

If a dashboard is having two different object amounts, which is to be summed? Or, if they occurs more than once they would have same object amounts?

Not applicable
Author

Hi Tresesco

Thanks for the reply

My apologies for the wrong data above, actually, dashboard has only one amount of objects..

No dashboard will not have different number of objects as they are identical..

tresesco
MVP
MVP

In that case, may be you can use : =Sum(Aggr(Agv(Objects), Dashboard))

Not applicable
Author

Hi Tresesco

AGv means do u mean Avg??

tresesco
MVP
MVP

Yes. That's a typo.

Not applicable
Author

Hi treseco,,

I used it, but I am getting wrong result..

tresesco
MVP
MVP

It is working with me - in sample data set. PFA

Not applicable
Author

May i ask you ?

why should we average ? i am getting the result in decimals.. number of objects should not be decimal in my app

Thanks

Anil_Babu_Samineni

Can you let me know, How Objects associative in Qlikview object? Can you share the image for that?

Updated: (Try This)

=Sum(aggr( sum(Distinct objects),Dashboard))

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