Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

MDX - Cube Calculated member - Year Over Year Growth Percentage by Month giving error NULL, Empty or Infinity Error

$
0
0

Hi,

I need Internet Sales Growth percentage of a Month By year.

For example Internet sales for May of Every year is this. My Problem is the first year where nothing available in previous year so divide by zero/null is giving infinity.

Internet_sales | Growth | Growth Percentage = ((Current year- Previous Year) / Previous Year)

2004| 100 | 100| 100 ((2004-2003)/2003) .... but 2003 is null so giving "Infinity" error

2005 150 50 50

2006 130 -20 -13

Any suggestion/ solution please.

Many Thanks.



Think BIG but Positive, may be GLOBAL better UNIVERSAL.




Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>