Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
marcel_olmo
Partner Ambassador
Partner Ambassador

Question aggregate

Hi guys, if I have a table like this :

DateNumber
20/01/20122
20/02/20122
20/03/20121
20/04/20123
20/05/20121
20/06/20121

How could I get a table like this with set analysis ?

DateNumber
20/01/20120
20/02/20120
20/03/20120
20/04/20120
20/05/20120
20/06/201210

Regards, Marcel.

15 Replies
Not applicable

Hi Marcel

Does this fit your needs?

best regards

Chris

salto
Specialist II
Specialist II

Aggr.jpg

No way! Values are in the first date

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks Brian! It works well in this table. But as I see, it works depending on the Id on the table. What I mean is that in the table I haven't explicitly the ID, and there are more fields to take in count to get the correct sum.

Imagine there's ID, ID1, ID2, ....IDN.

How this will work with a lot of related fields without needing to add this fields into the table?

Many thanks in advance!

bdunphy
Contributor III
Contributor III

as an example - I use this calculation to give a stock total for Item Subgroup within Customer.

The table itself has approx 10 dimensions. It does not matter how many.

I just check it the row below is a new customer or a new Item Subgroup and if it is - I display the total for that Customer, Item Subgroup.

Try it with your data. or if you can - post a sample qvw

If(

MaxString(Customer)

<>

below(Total MaxString(Customer))

or

MaxString([Item Subgroup])

<>

below(Total MaxString([Item Subgroup]))

,

Sum(Total<Customer,[Item Subgroup]> [Total Stock Wgt]),' ')

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks Brian! You're very helpful.

But it still don't work for me.

In the QV document you will have a table with my "current result", my "desired result" and another one with what I'm trying based on your formula-

This is a sample of what I'm doing. Could you tell me what I'm doing wrong?

Regards, Marcel.

christian77
Partner - Specialist
Partner - Specialist

Hi Marcel.

I send you a try attached.

Salutes.