DB function is not pulling data from the source cube
Posted: Tue Sep 10, 2019 9:13 pm
Hello I'm new to TM1 and am stuck with the DB function in a very simple rule.
I have a cube (source cube "Submetering Building Number of Units") with 3 dimentions:
Projects: there are in total 250 projects in this dimension
Type of projects : each project is tagged as "electric", "water", "gas" or "BTU", so in total 4 elements in Type dimension
Number of Units in Project: each project has a number of units in it
I have another cube (target cube) calculating revenue per project with Projects and Type of Projects dimensions as part of it. and I'm trying to pull the number of units from the source cube to the target cube where "number of units" is an element in its measure dimension.
the rule I'm having trouble with is:
['Number of Units']=N:DB('Submetering Building Number of Units',!Submetering Projects,!Submetering Services);
it doesn't work, nothing being pulled in and I have no idea where I did wrong. Can someone please kindly help? I'm an absolute beginner, my apologies if this question is stupid...
thanks in advance!
I have a cube (source cube "Submetering Building Number of Units") with 3 dimentions:
Projects: there are in total 250 projects in this dimension
Type of projects : each project is tagged as "electric", "water", "gas" or "BTU", so in total 4 elements in Type dimension
Number of Units in Project: each project has a number of units in it
I have another cube (target cube) calculating revenue per project with Projects and Type of Projects dimensions as part of it. and I'm trying to pull the number of units from the source cube to the target cube where "number of units" is an element in its measure dimension.
the rule I'm having trouble with is:
['Number of Units']=N:DB('Submetering Building Number of Units',!Submetering Projects,!Submetering Services);
it doesn't work, nothing being pulled in and I have no idea where I did wrong. Can someone please kindly help? I'm an absolute beginner, my apologies if this question is stupid...
thanks in advance!