Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
geogou1973
Creator
Creator

Data with record number and step progress problem

Hello.

I have create a straight chart and the data are sorting decending  by the amount. Also i have a column that has record number and the name of cardholder.

I have create also an input field that you can give the step.     

Step=3

The data are like the table below

RecordNoCardholderAmount
1poiuy9876
2kkk4567
3Guy1000
4wedf1000
5Dav850
6Best701
7qwr567
8qwer432
9plom321
10Mam300
11jjj234
12Nana139
13llop123
14tyj98
15Devra80
16Gibson75
17fgns56
18plo56
19Kim50
20sdfg34
21Jim30
22Jane25

When you give the step e.g 3 in another straight chart you have the data of cardholders that have the record number 3, 6, 9, 12, 15 e.t.c

RecNoCardholder
6Best
9plom
12Nana
15Devra
21Jim

The problem is that i lose the data that i have the same Amount in the first table e.g i lose the record number 3 and18.

Is there somebody to help me to not lose that data ?

I attach the QVW.

Thanks in advance.

4 Replies
swuehl
MVP
MVP

Try

=aggr(if(mod(rank(sum(Amount),4,0),Step)=0,rank(sum(Amount)),0),Cardholder)

as your calculated dimension.

geogou1973
Creator
Creator
Author

Does not word correctly at all because i want in the chart
Cardholders by Step to show record 3 , 6, 9, 12 e.t.c

and not 3-4 because the results are incorrect if you see in the chart Cardholders below the chart

Cardholders by Step.

swuehl
MVP
MVP

It's just a question how you sort the Cardholder having same sum(Amount), and to format the rank as number, not as text.

You are using advanced aggregation in your calculated dimension, which always sort its dimension values by load order, so you need to sort the Cardholder in your second table also by load order.

Check attached.

geogou1973
Creator
Creator
Author

Thank you very much.

It works perfect.