Design

Cube structure optimization for MDX query performance in Analysis Services 2005 SP2: Tips for Parent Child Hierarchies usage

Fact table design for “State Workflow Analysis”: Analysis Services Dimensional modeling

Handling inter-dimensional members dependency and reducing cube sparsity using reference dimensions in Analysis Services 2005 SP2 : Cube design tip

Identifying intra-dimensional members relationship and reducing cube sparsity in Analysis Services 2005 SP2 : Cube design tip

Leaves() : An example to understand it for both regular hierarchies as well as parent child hierarchies

Aggregation design: useful tips

Level based attribute hierarchy: MDX query performance woes in SQL Server 2005 SP2: Is it fixed in post SP2 hotfix?

Parent child hierarchy to level base hierarchy conversion: hiding placeholder dimension members in client application

Trouble / Troubleshooting

Aggregate(), Sum() functions using calculated members does not work in Analysis Services 2005 SP2 (9.00.3042.00 version) but works in Analysis Services 2000 SP4

Analysis Services 2005 migration tool: Custom member formula issues in migrated database

Cube Partitions: Fact table not listing in Business Intelligence Development Studio in partition wizard

Analysis Services 2005: Many-to-Many relationship does not support unary operators with parent-child dimension

MDX

NextAnalytics and MDX : Part 1 - Swap Cells with Row Labels

Selecting dimension's default member based on a member property

Sorting members on member codes / member properties

Time Dimension: How to set Default Member to Current Month

Setting dynamic default member in dimension X based on the current member of dimensions Y

ADOMD.NET

Code : utility code for converting cellset to a data table

Others

Google specialized search for Analysis Services and MDX web resources integrated in my blog

Art of reading MDX articles

MDX Expression Builder : Need for a tool making it easier for functional users to write MDX expressions, queries.

2 comments:

prashant kotwal said...

Hi Ajit,

Can you please help me for optimizing the MDX query below..
Aftre applying MDX Studio Online sugesstions also Im not getting desired result.
It would be highly appriciated if you could able to help me

Thanks in Advance ...

MDX Query :



WITH
SET [FiscalMonths] as
EXCEPT(Ancestor(StrToMember("[Time Periods].[Fiscal Periods].[Fiscal Date].&[" + Format(Now(),"yyyy-MM-dd") + "T00:00:00]"),
[Time Periods].[Fiscal Periods].[Fiscal Month]).lag(11):
Ancestor(StrToMember("[Time Periods].[Fiscal Periods].[Fiscal Date].&[" + Format(Now(),"yyyy-MM-dd") + "T00:00:00]"),
[Time Periods].[Fiscal Periods].[Fiscal Month]),
Ancestor(StrToMember("[Time Periods].[Fiscal Periods].[Fiscal Date].&[" + Format(now(), "yyyy-MM-dd") + "T00:00:00]"),
[Time Periods].[Fiscal Periods].[Fiscal Month]))


SELECT {
([Measures].[Forecast Quantity]),
([Measures].[Total Quality Opportunity]),
([Measures].[6mos Shipped Quantity]),
([Measures].[6mos RA Defects Per Million Units]),
([Measures].[6mos RP Incidents Rate]),
([Measures].[6mos RP Cost Per Unit]),
([Measures].[6mos Total Quality Cost Per Unit])}
ON COLUMNS,

NONEMPTY(
CROSSJOIN({[FiscalMonths]},
{[Current Vendor Details].[Vendor Number].&[ASHLEY]},
{[Current Product Details].[Item SKU].Children},
{[Current Product Details].[Item Description].Children},
{[Current Product Details].[Item Code].Children},
{[Manufacturing Details].[Manufacturing Site].Children}),
[Measures].[6mos Shipped Quantity])
ON ROWS
FROM ( SELECT ( { [Current Product Details].[Current Manufacturing Status].&[Current],
[Current Product Details].[Current Manufacturing Status].&[New] } ) ON COLUMNS
FROM ( SELECT ( -{[Current Product Details].[Product Line].&[Other] } ) ON COLUMNS
FROM [Quality]))
Where
[Current Product Details].[AFI Finance Division].[All]

Unknown said...

we are offering best power bi online training with job support and high quality training facilities and well expert faculty . To Register you free demo please visit
Power BI Online Training
Power BI Online Training Bangalore

My Articles

Design

Cube structure optimization for MDX query performance in Analysis Services 2005 SP2: Tips for Parent Child Hierarchies usage

Fact table design for “State Workflow Analysis”: Analysis Services Dimensional modeling

Handling inter-dimensional members dependency and reducing cube sparsity using reference dimensions in Analysis Services 2005 SP2 : Cube design tip

Identifying intra-dimensional members relationship and reducing cube sparsity in Analysis Services 2005 SP2 : Cube design tip

Leaves() : An example to understand it for both regular hierarchies as well as parent child hierarchies

Aggregation design: useful tips

Level based attribute hierarchy: MDX query performance woes in SQL Server 2005 SP2: Is it fixed in post SP2 hotfix?

Parent child hierarchy to level base hierarchy conversion: hiding placeholder dimension members in client application

Trouble / Troubleshooting

Aggregate(), Sum() functions using calculated members does not work in Analysis Services 2005 SP2 (9.00.3042.00 version) but works in Analysis Services 2000 SP4

Analysis Services 2005 migration tool: Custom member formula issues in migrated database

Cube Partitions: Fact table not listing in Business Intelligence Development Studio in partition wizard

Analysis Services 2005: Many-to-Many relationship does not support unary operators with parent-child dimension

MDX

NextAnalytics and MDX : Part 1 - Swap Cells with Row Labels

Selecting dimension's default member based on a member property

Sorting members on member codes / member properties

Time Dimension: How to set Default Member to Current Month

Setting dynamic default member in dimension X based on the current member of dimensions Y

ADOMD.NET

Code : utility code for converting cellset to a data table

Others

Google specialized search for Analysis Services and MDX web resources integrated in my blog

Art of reading MDX articles

MDX Expression Builder : Need for a tool making it easier for functional users to write MDX expressions, queries.

Blogroll