MDX – Misura di Forecast

Col seguente codice è possibile creare una misura che riporti il valore dal giorno selezionato  fino alla fine dell’anno corrente.
 
In questo caso l’attributo “indic” è composto da AAAAMMGG  es. 20111231 come fine anno.
 
WITH MEMBER [Measures].[Forecast] As
SUM({[DimTempo].[Indice].currentmember : STRTOMEMBER(“[DimTempo].[Indice].&[" + CStr(Year(Now())) + "1231]“)}
   , [Measures].[NomeMisura]
   )
Select [Measures].[Forecast] on columns,
[DimTempo].[Indice].[Indice] on rows
from [NomeCubo]

, , ,

  1. Lascia un commento

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Follow

Get every new post delivered to your Inbox.