Hello
I have searched forum but could not find any postings regarding this
Using PA2.0.6, we note the following behaviour
MEASURE: Net Commitment (C) = PC Amount (N) - PO Amount (N)
PC Amount is 122,663.31 (and when exported to Excel has 20 "0's) after
PO Amount is same
Net Commitment shows as 0.00000000014551915223
rather than 0.00
this is causing issues as we are listing where Net Commitment <> 0, and this scenario is displayed, when clearly it should not.
I know we can do a workaround such that we use an MDX to display where ABS(Net Commitment) >= 0.01 but that should not be needed.
one dimension element in cube view is consolidated (grouping of two N level cost centres, the rest of the dimensions are N level).
PC amount is against Cost centre 1, PO Amount is against CC 2, weighting of cost centre elements is = 1
the measures are formatted (attributes) to be category = Comma, Precision = 0
Any ideas ?
Consolidation sum error - negative weighting
-
- Site Admin
- Posts: 6647
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Consolidation sum error - negative weighting
Your clue is right here:
If you're importing values, then round them to a small number of decimal places in the TI process before adding them to the cube.
If you're calculating them in rules, add rounding to the rules.
You get this effect if you have tiny decimal amounts way out on the horizon.
If you're importing values, then round them to a small number of decimal places in the TI process before adding them to the cube.
If you're calculating them in rules, add rounding to the rules.
Formatting is just that; formatting. It doesn't change the underlying cube values.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 9
- Joined: Thu Jan 31, 2019 12:15 am
- OLAP Product: TM1
- Version: PA 2.0.6
- Excel Version: Excel 2016
Re: Consolidation sum error - negative weighting
Sorry Alan, I misled you.
When exported to excel it has 2 decimal places. When you change the format to increase decimal places, it is all 0's (just to prove it has nothing after the .31). Hence the value is $122,663.31.
the value for net commitment in the cube is the value I showed 0.0000000000001455 etc
When exported to excel it has 2 decimal places. When you change the format to increase decimal places, it is all 0's (just to prove it has nothing after the .31). Hence the value is $122,663.31.
the value for net commitment in the cube is the value I showed 0.0000000000001455 etc
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Consolidation sum error - negative weighting
How do you know PO Amount is the same? Did you look at the unformatted value behind that cell in TM1? Take your formatting off the cube and compare those two amounts. They are probably not the same which is why the net is not equal to 0. This is where you follow the advice of Alan and make sure you round the values to two decimal places when loading them into the cube OR when you populate them with rule.
-
- Posts: 9
- Joined: Thu Jan 31, 2019 12:15 am
- OLAP Product: TM1
- Version: PA 2.0.6
- Excel Version: Excel 2016
Re: Consolidation sum error - negative weighting
Thankyou for your comments so far, but I do not believe they have hit the nail on the head.
Took formatting off, some screen shots attached.
I have since noted that in the Month dimension, I was using Whole of Life, which is made up of opening balance (N) but $0, Year (with Months as children), and a consolidation for Forward Years.
The issue is at the Forward Years consolidation level where the issue appears, but you will see, esp in last screen shott, that its children are $0.
Although the highlighted cell shows 0, it actually is not 0. it is 0.00000000005821... when exported to excel, but also as zero suppress is on, it should not show if it is actually 0
Took formatting off, some screen shots attached.
I have since noted that in the Month dimension, I was using Whole of Life, which is made up of opening balance (N) but $0, Year (with Months as children), and a consolidation for Forward Years.
The issue is at the Forward Years consolidation level where the issue appears, but you will see, esp in last screen shott, that its children are $0.
Although the highlighted cell shows 0, it actually is not 0. it is 0.00000000005821... when exported to excel, but also as zero suppress is on, it should not show if it is actually 0
- Attachments
-
- Capture2.JPG (36.68 KiB) Viewed 4751 times
-
- Capture.JPG (108.63 KiB) Viewed 4752 times
-
- Consolidation issue.docx
- (197.8 KiB) Downloaded 274 times
-
- Posts: 9
- Joined: Thu Jan 31, 2019 12:15 am
- OLAP Product: TM1
- Version: PA 2.0.6
- Excel Version: Excel 2016
Re: Consolidation sum error - negative weighting
also see attached
- Attachments
-
- Consol issue.xlsx
- (10.23 KiB) Downloaded 312 times
- 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: Consolidation sum error - negative weighting
You probably need to read up on floating point arithmetic.
https://en.wikipedia.org/wiki/Floating-point_arithmetic
Basically this means that even if mathematically / logically something should net to 0 it sometimes won't due to the very small inaccuracies introduced by converting a decimal value to binary and back again.
So if you want your accuracy to be 2 d.p. then round any ruled values, but even this might cause a zero suppression failure occassionally.
I seem to remember there is cfg setting in this area but my googlefu is off the boil....
https://en.wikipedia.org/wiki/Floating-point_arithmetic
Basically this means that even if mathematically / logically something should net to 0 it sometimes won't due to the very small inaccuracies introduced by converting a decimal value to binary and back again.
So if you want your accuracy to be 2 d.p. then round any ruled values, but even this might cause a zero suppression failure occassionally.
I seem to remember there is cfg setting in this area but my googlefu is off the boil....
Technical Director
www.infocat.co.uk
www.infocat.co.uk
-
- Posts: 9
- Joined: Thu Jan 31, 2019 12:15 am
- OLAP Product: TM1
- Version: PA 2.0.6
- Excel Version: Excel 2016
Re: Consolidation sum error - negative weighting
Someone will make a motsa if they find a solution for that …..
-
- Posts: 16
- Joined: Wed Nov 15, 2017 11:36 am
- OLAP Product: TM1
- Version: Various
- Excel Version: Various
Re: Consolidation sum error - negative weighting
As Steve points out, there is a parameter in the TM1S.CFG file but it relates specifically to division:
MagnitudeDifferenceToBeZero
MagnitudeDifferenceToBeZero