ATTRS question

Post Reply
User avatar
BigDSter
Posts: 55
Joined: Thu May 15, 2008 8:02 am
OLAP Product: TM1
Version: 9.4.1
Excel Version: 2007
Location: Preston

ATTRS question

Post by BigDSter »

Okay I may be overlooking the blinding obvious but for some reason I can't get this to work.

I have a standard cube which is in Periods. The users want it in weeks, which is fine, but the pricing for a valuation routine is stored in a period cube maintained by the user.

I've put the weeks into the same dimension but have added an attribute to them that indicates which period they belong too, for Pricing purposes.

In my valuation routine I have Cases as my source view, and my new value as

nvalue=value*CellGetN(
'NFF Pricing',customer,product,yyear,ATTRS('NFF Period', week, 'Period'))
;

where customer/product/yyear/week are defined as elements on the variables tab.

It comes up with the error

Line 1: Invalid key: ""

which vanishes when I change week to 'w_1'

Can I not use ATTRS this way?

Hope someone can point out what stupid mistake I am making this time :lol:
David Newton
Burtons Foods
User avatar
John Hobson
Site Admin
Posts: 330
Joined: Sun May 11, 2008 4:58 pm
OLAP Product: Any
Version: 1.0
Excel Version: 2020
Location: Lytham UK
Contact:

Re: ATTRS question

Post by John Hobson »

How is "week" defined David?

best wishes

John
John Hobson
The Planning Factory
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: ATTRS question

Post by Steve Vincent »

I'm assuming this is a TI, so could it be the 1st record the TI is based on is picking an element in "NFF period" that has no week attribute defined?
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
User avatar
BigDSter
Posts: 55
Joined: Thu May 15, 2008 8:02 am
OLAP Product: TM1
Version: 9.4.1
Excel Version: 2007
Location: Preston

Re: ATTRS question

Post by BigDSter »

Steve Vincent wrote:I'm assuming this is a TI, so could it be the 1st record the TI is based on is picking an element in "NFF period" that has no week attribute defined?
doh :oops:

That will be the one then ;)

Ta
David Newton
Burtons Foods
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: ATTRS question

Post by Steve Vincent »

Only thought of it because its caught me out on a number of occasions ;) Mistakes are worth making as long as a) they don't kill you and b) you learn from them :lol:
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Post Reply