I need to show Top 10 results for a particular column.
Lets say need to display only top 10 customers having maximum internet sales for a product. How can I achieve such functionality using xamPivotGrid. I understand that I might have to change MDX query that is run. (Or is there another way to do this?)
This is being researched to see if a query can be run against the data source. I will update you with my progress as soon as I have any information.
Sam
Thanks.
I spoke with our engineers about this. Apparantly a query such as 'Select Top 5' cannot be run against Pivot Grid records. You would need to query the underlying data source for that.
Thank you for your patience on my response.
Hello,
You may need something like the query described in this post.
Currently we don’t support that functionality. However you can get access to the Execute statement passed to the XMLA service:
With the latest service release we provide XmlaDataSource.InitXmlaMethod event. When you are listening for this event you are able to:
1. Track all Discover queries passed against XMLA service – it means that in the event handler you have access to properties and restrictions included into the SOAP body when Discover is posted.
2. Track all Execute queries – you have access to the statement which we generate and execute against XMLA service.
Have a look at this sample:
private void XmlaDataSource_InitXmlaMethod(object sender, InitXmlaMethodEventArgs e)
{
XmlaSoapMethodExecute executeMethod = e.SoapMethod as XmlaSoapMethodExecute;
if (executeMethod != null)
string statement = executeMethod.Statement;
}
The statement can be modified and the modified version is the one that we will pass to XMLA service. Hopefully we can process properly the result returned in response of the modified statement.
Best regards.
Plamen.
Hi Plamen,
I did change the statement and my statement does get executed. While the query runs fine and binds to xamPivotGrid fine, the problem is the state of the PivotGrid expand, collapse for the hierarchical data does not update properly.
Can you tell me how to update that properly?
This has been determined to be a new feature, and I have submitted a feature request on your behalf. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development you will be notified at that time. Your reference number for this feature request is FR12931.
Thank you for your request,Sam
Thank you Sam,
Do you know approximately whent this feature will be availble. Currently I am developing a workaround and if this is going to be implemented within acceptable time frame. I might just wait for it.
Hello Dharmesh,
Currently there is no further information about estimated timeframe for implementation. Your registered email is linked to the feature request, so you will receive an email notification whenever it's implemented.
Thank you,Sam