sql >> Database >  >> RDS >> Sqlserver

MDX Meting berekenen op basis van dimensie zonder leden in resultaten weer te geven

WITH MEMBER [Measures].[A] AS
   [Measures].[Internet Order Count] + [Measures].[Reseller Order Count]
SELECT
{ [Measures].[Internet Order Count], [Measures].[A] } ON COLUMNS,
 [Date].[Calendar].[Month] ON ROWS
 FROM (
   SELECT { [Measures].[Internet Order Count] } ON COLUMNS,
   Filter (
     Filter ( [Date].[Calendar].[Month] * [Delivery Date].[Calendar].[Month], [Date].[Calendar].CurrentMember.Name = [Delivery Date].[Calendar].CurrentMember.Name ) * [Sales Territory].[Sales Territory Country].[Sales Territory Country],
     [Measures].[Internet Order Count] + [Measures].[Reseller Order Count] > 100
   ) ON ROWS
   FROM [Adventure Works]
 )
WHERE [Date].[Calendar Year].[CY 2008]


  1. Barman Cloud – Deel 2:Cloudback-up

  2. MYSQL Selecteer MAX Date in een join-instructie

  3. Opgeslagen procedure zorgt ervoor dat Commando's niet synchroon lopen bij de volgende query

  4. Hibernate buitenaardse vragen naar de database sturen