Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.37 KB

File metadata and controls

54 lines (42 loc) · 1.37 KB
description KPITrend (MDX)
title KPITrend (MDX) | Microsoft Docs
ms.date 02/17/2022
ms.prod sql
ms.technology analysis-services
ms.custom mdx
ms.topic reference
ms.author owend
ms.reviewer owend
author minewiskan

KPITrend (MDX)

Returns the normalized value that represents the trend portion of the specified Key Performance Indicator (KPI).

Syntax

  
KPITrend(KPI_Name)  

Arguments

KPI_Name
A valid string expression that specifies the name of the KPI.

Remarks

The trend value is generally a normalized value between -1 and 1.

Example

The following example returns the KPI value, KPI goal, KPI status, and KPI trend for the channel revenue measure for the descendants of three members of the Fiscal Year attribute hierarchy:

SELECT  
   { KPIValue("Channel Revenue"),   
     KPIGoal("Channel Revenue"),  
     KPIStatus("Channel Revenue"),   
     KPITrend("Channel Revenue")  
   } ON Columns,  
Descendants  
   ( { [Date].[Fiscal].[Fiscal Year].&[2002],  
       [Date].[Fiscal].[Fiscal Year].&[2003],  
       [Date].[Fiscal].[Fiscal Year].&[2004]   
     }, [Date].[Fiscal].[Fiscal Quarter]  
   ) ON Rows  
FROM [Adventure Works]  

See Also

MDX Function Reference (MDX)