Remainder

Returns the fractional part of the numeric value expression.

Syntax

Remainder ( numeric_value_expression )
ParameterDescription

numeric_value_expression

A numeric value expression (see MDX Grammar Rules).

Example

Remainder([Margin %]) 

extracts the fractional part of the [Margin %] value.

The following query shows [Margin %] and the fractional part of it for all members of the Product dimension.

WITH
   MEMBER [Measures].[Margin % Rem] AS 'Remainder([Margin %])'
SELECT
   {[Margin %], [Margin % Rem]} ON COLUMNS,
   [Product].Members ON ROWS
FROM Sample.Basic

This query returns the following grid:

(axis)Margin %Margin % Rem
Product55.2620.262
10057.2730.273
100-1061.4830.483
100-2051.4790.479
100-3050.4240.424
20055.5400.540
200-1054.2700.270
200-2056.4360.436
200-3056.4500.450
200-4055.7530.753
30054.2380.238
300-1055.8160.816
300-2042.9920.992
300-3057.5510.551
40053.6000.600
400-1057.3540.354
400-2056.2990.299
400-3039.4770.477
Diet55.3970.397
100-2051.4790.479
200-2056.4360.436
300-3057.5510.551