Int.

La funzione Int MDX per Essbase restituisce il successivo valore intero più basso di un'espressione.

Sintassi

Int ( numeric_value_expression )

Parametri

espressione_valore_numerico

Valore numerico o espressione che restituisce un valore numerico (vedere Regole grammaticali MDX).

Esempio 1

Int(104.504) restituisce 104.

Esempio 2

La query seguente:

WITH MEMBER [Market].[West_approx]
AS
 'Int(
    Sum(
       Children([Market].[West])
    )
  )' 
SELECT
 {[Year].[Qtr1].Children}
ON COLUMNS, 
  {[Market].[West].children,
  [Market].[West_approx]}
ON ROWS
FROM 
 Sample.Basic
WHERE ([Measures].[Profit %], [Product].[Cola], [Scenario].[Actual])

restituisce la griglia:

Tabella 4-83 Griglia di output da MDX Esempio

(axis) Gen Feb Mar
Liguria 38,643 37,984 38,37
Oregon 17,5 16,129 16,107
Washington 29,231 30,986 32
Utah 23,077 23,077 20,968
Nevada -3,947 -6,757 -5,333
Occidentale_approx 104 101 102