Quantcast
Channel: SCN : Popular Discussions - SAP BusinessObjects Analysis, edition for OLAP
Viewing all articles
Browse latest Browse all 2908

How can I create a custom calculation that will not error when adding NULL values?

$
0
0

Hi,

 

Version: BI 4.0 SP8.3

Database: Microsoft SQL Server 2012 Analysis Services

Question: How can I create a custom calculation that will not produce the following error when adding a NULL value?

 

I am getting this error:

 

The MDAS service encountered an error.

Failed to get representation: RuntimeException occurred : com.sap.ip.bi.bics.exceptions.BicsProgrammErrorException: Invalid program status: Invalid new element, level to low: 1 but expected 2

2015-04-22_16-27-53.png

I believe the error is occurring due to the Total Expenses custom calculation (see red arrow below):

2015-04-22_16-32-25.png

Total Expenses is simply adding the values from the other custom calculations above it (see blue arrows above).

The formula is: 'FORMULA/[Activity]/Formula1' + 'FORMULA/[Activity]/Formula4' + 'FORMULA/[Activity]/Formula6'

This formula works great when all three calculations have values. The problem arises when one of them has a NULL value.

 

How can I create a custom calculation that will not fail when adding NULL values?

 

Thanks,

 

Michael


Viewing all articles
Browse latest Browse all 2908

Trending Articles



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