RE: Calculated Member question
- From: "Hossy" <Hossy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Jul 2005 17:11:01 -0700
I thought I had it! After some internal data auditing it looks like the
claim count is way under-reporting. Could you take a look at my posted MDX
and let me know if you see any glaring issues? Thanks
Chad
The full query is as follows:
WITH MEMBER [Measures].[Group] AS
'Mid(MemberToStr([PhaseTask].CurrentMember),30,1)' MEMBER
[Measures].[LawFirmDesc] AS 'MemberToStr([Lawfirm].CurrentMember)' SET
[ClaimCloseDate_Set] AS '{[ClaimCloseDate].[All ClaimCloseDate].[2004] }'
MEMBER [ClaimCloseDate].[All ClaimCloseDate].[SelectedClaimCloseDates] AS
'Aggregate([ClaimCloseDate_Set])' SET [Jurisdiction_Set] AS
'{[Jurisdiction].[All Jurisdiction].[State]}' MEMBER [Jurisdiction].[All
Jurisdiction].[SelectedJurisdiction] AS 'Aggregate([Jurisdiction_Set])'MEMBER
[Measures].[ClaimCount] AS
'Count(NonEmptyCrossJoin(Descendants([Case].CurrentMember,,LEAVES),[ClaimCloseDate_Set],
[Jurisdiction_Set],{[PhaseTask].[All PhaseTask]}, {[Lawfirm].CurrentMember},
1))' SELECT
{[Measures].[LawFirmDesc],[Measures].[Group],[Measures].[ClaimCount],[Measures].[Legal
Fees Approved], [Measures].[Expenses Approved], [Measures].[Hours Approved]}
ON COLUMNS, CrossJoin ({[PhaseTask].[All PhaseTask].[L100
Assessment].Children, [PhaseTask].[All PhaseTask].[L200
Pre-Trial].Children,[PhaseTask].[All PhaseTask].[L300
Discovery].Children,[PhaseTask].[All PhaseTask].[L400
Trial].Children,[PhaseTask].[All PhaseTask].[L500
Appeal].Children,[PhaseTask].[All PhaseTask].[E100
Expenses].Children,[PhaseTask].[All PhaseTask].[Indemnity],[PhaseTask].[All
PhaseTask].[Prior Legal Fees]}, {[Lawfirm].[All Lawfirm]}) ON ROWS FROM
Datamart_Vis_Ins165_Claim WHERE ([Case].[All Case].[C], [FeeAgreement].[All
FeeAgreement].[Hourly + Expenses], [ClaimCloseDate].[All
ClaimCloseDate].[SelectedClaimCloseDates], [Jurisdiction].[All
Jurisdiction].[SelectedJurisdiction])
"Deepak Puri" wrote:
> This MSDN Paper covers Distinct Count Analysis:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql2k
> /html/distinct2.asp
> >>
> Analysis Services: DISTINCT COUNT, Basket Analysis, and Solving the
> Multiple Selection of Members Problem
>
> Amir Netz
> Microsoft Corporation
>
> Updated May 18, 2004
>
> Applies to:
> Microsoft SQL Server 2000
> Microsoft SQL Server 2000 Analysis Services
>
> Summary: This article discusses ways to meet information demands and
> take full advantage of Analysis Services 2000 by illustrating the use of
> calculated members and multidimensional expressions (MDX). (10 printed
> pages)
> ...
> >>
>
>
> One approach would be to use NonEmptyCrossJoin():
>
> >>
> MEMBER [Measures].[ClaimCount] AS
> 'Count(NonEmptyCrossJoin(Descendants(
> [Case].CurrentMember,,LEAVES),
> [ClaimCreationDate_Set],
> [ClaimCloseDate_Set],
> [ClaimAssignmentDate_Set],
> {[Lawfirm].CurrentMember},
> {[Jurisdiction].CurrentMember}, 1))'
> >>
>
>
> - Deepak
>
> Deepak Puri
> Microsoft MVP - SQL Server
>
> *** Sent via Developersdex http://www.developersdex.com ***
>
.
- Follow-Ups:
- RE: Calculated Member question
- From: Deepak Puri
- RE: Calculated Member question
- References:
- Calculated Member question
- From: Hossy
- RE: Calculated Member question
- From: Hossy
- RE: Calculated Member question
- From: Deepak Puri
- Calculated Member question
- Prev by Date: Re: How to enable Analysis Services with IIS on Win 2K
- Next by Date: Re: Kerberos and Analysis User
- Previous by thread: RE: Calculated Member question
- Next by thread: RE: Calculated Member question
- Index(es):
Relevant Pages
|
Loading