Issues creating a ROUNDP rule

Post Reply
njcube
Posts: 4
Joined: Tue Apr 21, 2020 9:36 pm
OLAP Product: Architect
Version: TM1 11.0.6
Excel Version: Excel 2013

Issues creating a ROUNDP rule

Post by njcube »

Hello everyone,

I am new to TM1 so please bear with me.

I am administrating an existing TM1 application. The application has a reporting cube utilized by Cognos BI reports. Within the TM1 cubes, certain measure have ling decimal values and I wanted to round those values to 2 decimal places.

The reporting cube gets loaded via a load TI process that runs every few hours. Rather than added to the TI process, I thought it would be simpler to add a rule to the reporting cube. The issue is that once I add the rule and save it, when i try to open the reporting cube, it never returns and Architect stops responding. I have to end up killing the service and restarting.

I also tried adding the RUX file while the service is down and then starting it. The service ends up never coming up and crashing eventually.

My test rule was only for one measure. I have a few more I want to apply it to but figured I would see if it worked first.

Here is the rule I added:

['Final Rate'] = N:

ROUNDP(DB('budReporting','Organization A','2020','Planning',!budElementOfResource,!budCustomer,!budOverheadType,!budFundTypeAppropSubApprop,!budAMS,!budProgram,!budEmployee,'Final Rate'),2);

I am running Planning Analytics 11.0.6
The cube is 95,166 KB in size
The server has 64 GB Memory which is about 80% in use when running TM1

Thank you very much for any feedback you can provide.
Wim Gielis
MVP
Posts: 3233
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Issues creating a ROUNDP rule

Post by Wim Gielis »

You have a circular reference. What you want to calculate depends on itself. That’s not going to work. If you want to use a rule, create a second measure and use that one for the calculation. That being said, I would think that BI had no problem rounding numeric values...
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
User avatar
Steve Rowe
Site Admin
Posts: 2456
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Issues creating a ROUNDP rule

Post by Steve Rowe »

I'd strongly recommend that you regard this as a formatting problem not a data problem.

If you go the rule approach then you will duplicate all the data (bad).
You could round the data on loading in the TI process, this is probably the most right way.

but....

As TM1 (and almost any computer) sums 2 d.p. values in Base 10 together it converts them into binary and then back again. This process often introduces very small values at a high number of d.p. and so the sum of 2 d.p. values will not always give a 2 d.p. value.
Technical Director
www.infocat.co.uk
njcube
Posts: 4
Joined: Tue Apr 21, 2020 9:36 pm
OLAP Product: Architect
Version: TM1 11.0.6
Excel Version: Excel 2013

Re: Issues creating a ROUNDP rule

Post by njcube »

Thank you both for your responses. It looks like I need to reevaluate how I address the rounding issue as you both suggested.

Thanks again.
Post Reply