Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Where are aggregate function(like Sum,Max...) defined (Read 4317 times)
luolishuang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 40
Joined: Feb 22nd, 2013
Where are aggregate function(like Sum,Max...) defined
Feb 27th, 2013 at 8:53am
Print Post  
Code
Select All
<r:Label Location="10,0" Size="100*,6" Text="Sum[Point]" />
 



we can use like this,but where's Sum defined?
and how to define median?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Where are aggregate function(like Sum,Max...) defined
Reply #1 - Feb 27th, 2013 at 10:59am
Print Post  
There are several aggregate functions available to use in expressions although they do not appear to be documented (we will rectify this in the next release). These include: Sum, Min, Max, Avg, and Count. Note, that the aggregate functions can be used only in DataRange headers and footers. The following is an example of how to use aggregate functions in expressions:

Code
Select All
<r:Label Text="Total gain: [Sum(Gain)]" /> 


We have also made modifications to the control to include a Median aggregate. The updated assemblies can be downloaded from the link below:

http://mindfusion.eu/_temp/MindFusion.Reporting.Wpf.1.3.trial.zip

Regards,
Meppy
  
Back to top
 
IP Logged
 
luolishuang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 40
Joined: Feb 22nd, 2013
Re: Where are aggregate function(like Sum,Max...) defined
Reply #2 - Feb 28th, 2013 at 1:34am
Print Post  
Meppy wrote on Feb 27th, 2013 at 10:59am:
There are several aggregate functions available to use in expressions although they do not appear to be documented (we will rectify this in the next release). These include: Sum, Min, Max, Avg, and Count. Note, that the aggregate functions can be used only in DataRange headers and footers. The following is an example of how to use aggregate functions in expressions:

Code
Select All
<r:Label Text="Total gain: [Sum(Gain)]" /> 


We have also made modifications to the control to include a Median aggregate. The updated assemblies can be downloaded from the link below:

http://mindfusion.eu/_temp/MindFusion.Reporting.Wpf.1.3.trial.zip

Regards,
Meppy


When I replace these dlls,An error occurred during the compilation below

namespace is wrong?
  

2013-2-28_9-30-08.png (Attachment deleted)
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Where are aggregate function(like Sum,Max...) defined
Reply #3 - Feb 28th, 2013 at 7:04am
Print Post  
The dlls target .NET 4. Is your project targeting a previous .NET version?

Regards,
Meppy
  
Back to top
 
IP Logged
 
luolishuang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 40
Joined: Feb 22nd, 2013
Re: Where are aggregate function(like Sum,Max...) defined
Reply #4 - Feb 28th, 2013 at 7:17am
Print Post  
Meppy wrote on Feb 28th, 2013 at 7:04am:
The dlls target .NET 4. Is your project targeting a previous .NET version?

Regards,
Meppy


My project target framework version is 3.5
Can support for this version?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Where are aggregate function(like Sum,Max...) defined
Reply #5 - Feb 28th, 2013 at 7:27am
Print Post  
A build for .NET 3.5 can be downloaded from the link below:

http://mindfusion.eu/_temp/MindFusion.Reporting.Wpf.1.3.trial.net35.zip

Regards,
Meppy
  
Back to top
 
IP Logged
 
luolishuang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 40
Joined: Feb 22nd, 2013
Re: Where are aggregate function(like Sum,Max...) defined
Reply #6 - Feb 28th, 2013 at 7:38am
Print Post  
Meppy wrote on Feb 28th, 2013 at 7:27am:
A build for .NET 3.5 can be downloaded from the link below:

http://mindfusion.eu/_temp/MindFusion.Reporting.Wpf.1.3.trial.net35.zip

Regards,
Meppy


Thanks a lot.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint