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

Getting the correct Total

Hi friends,

Not sure if this is an easy one, or if I am missing something stupid but I am trying to get proper total here which is definitely not 34,636,

Problem is that I am also dividing by 13 and obviously that figure is not correct,  There is the total function as an option but when you use a Bar Graph , you do not get that option to get the proper total. 

Thanks

Rolling13.png

1 Solution

Accepted Solutions
stevegimbrollmt
Creator II
Creator II
Author

I did sort it out in the end.

What I realised was that the other figures where correct and that was becuase the WeekAsOf table and the Figures tables are directly linked while the Users Players was linked to the Figures Table. 

Although in theory it should have worked, I am assuming and will check further that Qlik is doing some selecting maybe some associated numbers for that total.. i don't know

but when I created a userid with a different name in the figures table and used that... it worked perfectly and robust.

So Im gona leave it to that for now..so thanks Sunny

View solution in original post

11 Replies
sunny_talwar

You are dividing by 13? Don't see that in the expression above? But may be you can try using Aggr() function

Sum(Aggr(YourExpression, YourChartDimensions))

stevegimbrollmt
Creator II
Creator II
Author

Sorry, did not to confuse with that /13

In this sample. there is only a simple count, no  division by 13,  what I meant is that I want that the actually correct total to divide it by 13 later but because the total is not correct its giving a confusing average

sunny_talwar

Have you tried my Suggestion to use the Aggr() function?

stevegimbrollmt
Creator II
Creator II
Author

Hi,

yes I have,  and it did not work with Sum(Aggr(YourExpression, YourChartDimensions))

It is something I think with the Set Analysis. But then the other amounts I got, they do not have that problem so I am slightly confused on that

sunny_talwar

Can you share (in text) your expression and dimensions for this chart?

stevegimbrollmt
Creator II
Creator II
Author

Sure

Dimension : Week_AsOf

Expression: count({<Type={'Current'}>}[user_id])

Expression: count({<Type={'Rolling 13'}>}[user_id])/13

Actualy Data for it

 

Dep_WeekWeek_AsOfCurrentRolling 13(Rolling13)/13
324407291560.85
334407316562.77
344407369566.85
354407083544.85
364407393568.69
374407020540.00
384407228556.00
394406984537.23
404407207554.38
414407354565.69
424407353565.62
434407349565.31
44447,0697069543.77
sunny_talwar

So this did not work to get the correct total?

Sum(Aggr(Count({<Type={'Current'}>}[user_id]), Week_AsOf))

stevegimbrollmt
Creator II
Creator II
Author

Well it give me on both coloums the total I already have

In the rolling 13 coloum its giving me 34,636 when in reality if you take the total of all those numbers, it comes up to 86,725

 

          7,316
          7,369
          7,083
          7,393
          7,020
          7,228
          6,984
          7,207
          7,354
          7,353
          7,349
          7,069
         86,725
sunny_talwar

That is strange and have never seen something like this before. Would you be able to share a sample?