COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Ammus1234 on 10 Sep 2013 04:31:51 AM

Title: [Solved]substring() on a dimensional data source
Post by: Ammus1234 on 10 Sep 2013 04:31:51 AM
Hello All,

I am facing an error while using substring function on dimensional reporting in report studio.
I am using the below method to get the month name.
substring(caption([Fiscal Month]),1,3)

This gives me the below error:
XQE-GEN-0010 : Found an internal error: 'MUN without its level'.

Cognos version is 10.2.1

Any help?

Thanks in advance.
Title: Re: substring() on a dimensional data source
Post by: Adam_Clone on 10 Sep 2013 02:46:48 PM
Hi

From the look of it, you are trying to display a 3 character month name.

Maybe you can add a Member Description at that level (in case of DMR; Short Name attribute in case of cubes) that stores this value and use that in the report.

Let me know if this is helpful
Title: Re: substring() on a dimensional data source
Post by: Ammus1234 on 10 Sep 2013 10:43:07 PM
Hi Adam,

Thanks for the reply. It is SSAS at the backend.
Yes it is possible to create a new item. But I wanted to find out what is causing this error.
Normally it should work as per the samples given by IBM.

Title: Re: substring() on a dimensional data source
Post by: CognosPaul on 10 Sep 2013 11:15:22 PM
String functions, like substring are not supported in OLAP. You'll be forcing Cognos to run local processing. Read this: http://cognospaul.com/2010/11/29/the-importance-of-using-report-expressions/ (http://cognospaul.com/2010/11/29/the-importance-of-using-report-expressions/)
Title: Re: substring() on a dimensional data source
Post by: Ammus1234 on 11 Sep 2013 12:47:32 AM
Thank you very much Paul. This was exactly what I wanted.  :)