ActiveReports Developers 7 Now Available in Beta!! (click for details)

DynamiCube Support

Started by giangian at 09-14-2010 8:25 AM. Topic has 5 replies.

Print Search Rate
Sort Posts:    
   09-14-2010, 8:25 AM
giangian is not online. Last active: 4/3/2012 10:56:08 PM giangian

Not Ranked
Joined on 06-16-2010
Posts 4
DynamiCube 2.0 calculated
I'm using this unbound version with VB6 bur I don't understand how Cube works (or how I have to work...) with group totals (average for example).
Is there some examples for me?
Thanks

   Report 
   09-15-2010, 12:57 AM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: DynamiCube 2.0 calculated

Attachment: dc2Average.zip
Hello.

You can set GroupFooterType of Row/Column field to DCFAverage to display average for data fields instead of sum. I've attached a sample which demonstrates this behaviour.

Thank you,
Andrey T.

   Report 
   09-15-2010, 9:07 AM
giangian is not online. Last active: 4/3/2012 10:56:08 PM giangian

Not Ranked
Joined on 06-16-2010
Posts 4
Re: DynamiCube 2.0 calculated
Thanks for help.
I have another "little" question for you.
  • Using GroupFooterType = DCFAverage i do the average of alla DCData fields. Can I decide to do the average for some DCData fields and the sum or nothing for others?
  • Can I sort DCData field ? And can I sort DCData with a click on column name?
Thanks.



   Report 
   09-16-2010, 12:18 AM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: DynamiCube 2.0 calculated

Attachment: dc2AverageRankOn.zip
Hello.

1. Yes you can. You can use GroupFooterTypeEx instead of GroopFooterType and specify name of the data field. For example, this code snippet:
rowField.GroupFooterTypeEx("CustomerID") = DCFAverage
will set average group footer of the Row field for "CustomerID" data field and leave sum group footer of the Row field for other data fields.

2. You can Rank data items by using RankOn and RankStyle properties of the row field. Also you can switch ranking style by clicking column header by using HitRecord object.
http://www.datadynamics.com/Help/DynamiCube3/DynamiCubeLib~Field~RankOn.html
http://www.datadynamics.com/Help/DynamiCube3/DynamiCubeLib~Field~RankStyle.html
http://www.datadynamics.com/Help/DynamiCube3/DynamiCubeLib~HitRecord.html

I've attached a sample which demonstrates this. Note that for first data field group footer is average, for other fields its sum. Click on the "Number of Orders" field header to rank items based on the "Second field" row field.

Thank you,
Andrey T.

   Report 
   09-25-2010, 1:42 AM
giangian is not online. Last active: 4/3/2012 10:56:08 PM giangian

Not Ranked
Joined on 06-16-2010
Posts 4
Re: DynamiCube 2.0 calculated

Attachment: Example.txt
Thanks for time you lose for me....
Attached You find some VB6 row because I can order only first column but not second or other ones....
What happen when I move a page field in row field?
Thanks


   Report 
   09-26-2010, 11:21 PM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: DynamiCube 2.0 calculated
Hello.

RankOn property sets the data field index which grand total value is used in ranking the data items for this (Row) field. You cannot sort data fields directly.

Thank you,
Andrey T.

   Report 
GrapeCity » Product Support » DynamiCube Supp... » Re: DynamiCube 2.0 calculated

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.