Re: Percentage analysis
- From: "BizWorld" <moonis.tahir@xxxxxxxxx>
- Date: Tue, 15 Nov 2005 10:46:48 -0500
I am using this Syntax on one of my Cube. But it says Syntax error. any idea
what i wrote wrong.
WITH
MEMBER Measures.Pcnt as
'[Measures].[Total On Time]/(measures.[Totals],[TradeLane].[All TradeLane])
* 100'
SELECT
{measures.[Total On Time], Measures.Pcnt} ON COLUMNS,
{[TradeLane].[All TradeLane],[TradeLane].[Port].Members} ON ROWS
FROM OnTimePerformance
"Darren Gosbell" <jam@xxxxxxxxxxxxxxxxx> wrote in message
news:MPG.1de2b39574d5e28f9897b5@xxxxxxxxxxxxxxxxxxxxx
> You would create a calculated measure with a formula something like the
> one in the formula below. The sample below works with the Foodmart 2000
> database and takes the currently selected customer and returns the
> percentage against the "All Customers" member.
>
>>>>>
> WITH
> MEMBER Measures.Pcnt as '[Measures].[Sales Count]/(measures.[Sales
> Count],[Customers].[All Customers]) * 100'
> SELECT
> {Measures.[Sales Count], Measures.Pcnt} ON COLUMNS,
> {[Customers].[All Customers],[Customers].[City].Members} ON ROWS
> FROM Sales
>>>>>
>
> In your case you should be able to create a calculated measure in your
> cube that looks something like this "[Measures].[Passenger Count]/
> (measures.[Passenger Count],[Locations].[All Locations]) * 100" assuming
> that your measure is called "Passenger Count" and your cities are stored
> in a dimension called "Locations".
>
> HTH
>
> --
> Regards
> Darren Gosbell [MCSD]
> Blog: http://www.geekswithblogs.net/darrengosbell
>
> In article <eLIDz5L6FHA.1000@xxxxxxxxxxxxxxxxxxxx>,
> moonis.tahir@xxxxxxxxx says...
>> Hi,
>>
>> I want to show Percentage analysis on basis of # of passengers per City.
>> I have the Detail data with pessenger information travelling in Tri rail
>> per
>> City.
>>
>> Now if i create a measure then i have only option to Sum or Count the
>> records while i want to have a percentage.
>>
>> I dont know how i can do it in Cube.....any idea
>>
>> Regards,
>>
>> BizWorld
>>
>>
>>
>
.
- Follow-Ups:
- Re: Percentage analysis
- From: Darren Gosbell
- Re: Percentage analysis
- References:
- Percentage analysis
- From: BizWorld
- Re: Percentage analysis
- From: Darren Gosbell
- Percentage analysis
- Prev by Date: Unexpected Behavior of RANK function
- Next by Date: Using Hierarchy and Attribute Optimization settings
- Previous by thread: Re: Percentage analysis
- Next by thread: Re: Percentage analysis
- Index(es):
Relevant Pages
|