Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
geroge77 #1
why olapdatagrid always show only one olapmeasure?
I have defined two olapmeasures in olapcube,
but the olapdatagrid always shows the first defined olapmeasure,and the second measure don't show.
anyone has a solution?
thanks
geroge77 Guest
-
How to resize the width of row Header in OlapDataGrid
First question : I would like to resize the rows Header of my OlapDataGrid, how can I do ? Second question : I have an OlapDataGrid included in... -
Display of an olapDataGrid, formatter
Is it possible to send a formatter ? In fact I would like to apply a formatter after the value is analysed. I tried something but it doesn't work,... -
php show if
hi, i was looking for a FREE extension that basically was something that would show one thing if the user was logged in and show another if the user... -
need someone to show me the right way
I really don't know how to make this just the way I want to be. I wish I could show you the picture what I want. Maybe if I give you an URL:... -
Do not show if + SQL
I have two rows in my database, one is Sold = Y or N and the other is Sold date. I would like for an item not to show if SOLD = 'Y' and SOLDDATE >... -
-
Cosma #3
Re: why olapdatagrid always show only one olapmeasure?
On 16 Apr, 02:28, "geroge77" <webforumsu...@macromedia.com> wrote:
Same question here..> no answer?
Cosma Guest
-
sylvain.postolec@gmail.com #4
Re: why olapdatagrid always show only one olapmeasure?
How do you define your ColAxis ?
Get the source from this sample :
[url]http://flexpearls.blogspot.com/2008/04/custom-aggregator-sample-for-flex-olap.html[/url]
In this sample there are two different measures.
sylvain.postolec@gmail.com Guest
-
sylvain.postolec@gmail.com #5
Re: why olapdatagrid always show only one olapmeasure?
How do you define your ColAxis ?
Get the source from this sample :
[url]http://flexpearls.blogspot.com/2008/04/custom-aggregator-sample-for-flex-olap.html[/url]
In this sample there are two different measures.
sylvain.postolec@gmail.com Guest
-
Sreenivas R #6
Re: why olapdatagrid always show only one olapmeasure?
The first measure is by default included in the query results.
If you want to display multiple measures you need to include the required
measures either in the column axis or the row axis of the query.
Sreenivas R Guest
-
RJRoman #7
Re: why olapdatagrid always show only one olapmeasure?
Try creating a separate OLAPSet for metrics
var metricSet:OLAPSet= new OLAPSet;
metricSet.addElement(cube.findDimension("Measures" ).findMember("Revenue"));
metricSet.addElement(cube.findDimension("Measures" ).findMember("Cost"));
add metricSet as crossjoin to the column query axis:
var colQueryAxis:IOLAPQueryAxis = query.getAxis(OLAPQuery.COLUMN_AXIS);
colQueryAxis.addSet(customerSet.crossJoin(metricSe t));
Here, customerSet is
var customerSet:OLAPSet = new OLAPSet;
customerSet.addElements(cube.findDimension("Custom erDim").findAttribute("Customer").children);
OLAPCube itself looks like this
<mx:OLAPCube name="FlatSchemaCube"
dataProvider="{flatData}"
id="myMXMLCube"
complete="runQuery(event);">
<mx:OLAPDimension name="CustomerDim">
<mx:OLAPAttribute name="Customer" dataField="customer"/>
<mx:OLAPHierarchy name="CustomerHier" hasAll="true">
<mx:OLAPLevel attributeName="Customer"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="ProductDim">
<mx:OLAPAttribute name="Product" dataField="product"/>
<mx:OLAPHierarchy name="ProductHier" hasAll="true">
<mx:OLAPLevel attributeName="Product"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="QuarterDim">
<mx:OLAPAttribute name="Quarter" dataField="quarter"/>
<mx:OLAPHierarchy name="QuarterHier" hasAll="true">
<mx:OLAPLevel attributeName="Quarter"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="ZIPCodeDim">
<mx:OLAPAttribute name="ZIPCode" dataField="zip"/>
<mx:OLAPHierarchy name="ZIPCodeHier" hasAll="true">
<mx:OLAPLevel attributeName="ZIPCode"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPMeasure name="Revenue"
dataField="revenue"
aggregator="SUM"/>
<mx:OLAPMeasure name="Cost"
dataField="cost"
aggregator="SUM"/>
</mx:OLAPCube>RJRoman Guest



Reply With Quote

