Journal validation - account combinations
Posted: Fri Jul 20, 2018 9:06 am
Hi all,
Hope the following makes sense
Just looking for some design advice before proceeding with the actual work.
I have created a journal template in TM1 (websheet) which includes lots of validation.
There are 4 parts to the organisations chart of accounts, they are Cost Centre, Detail Code, Fund and Nominal.
I can use dimix or the disabled flag attribute to test if each of these 4 account keys is valid or not
However I also want to test if the codes can be used in combination, so are valid 4 part keys – i.e. are the relationships valid or not (this can be done outside TM1 via some validation software but the users don't always make use of it and sometimes invalid entries end up in the suspense accounts or are rejected by the general ledger).
The account relationship is between the nominals and the other 3 keys.
What I am puzzling over is how to create the cube to hold this information.
I can use sql to link to an account relation table to populate TM1. It should be noted that this table holds the nominal in one column and in another column holds the other 3 account keys, in other words there isn’t a column for each account key, they are all in the same column. So you can’t determine if the four part combination is valid from a row in this table, you can only say for example Nominal X appears in the nominal column and in the other column Cost Centre Y appears therefore X and Y is a valid combination.
I think I have 2 options:
1) Create 3 cubes, one for Cost Centre, one for Detail and one for Fund and have 3 dimensions in each cube, the other dimensions being Nominal and a measure to flag 1 if the relationship is valid.
2) Create one cube and have the nominal and measure dimension and create a new dimension to hold Cost Centre, detail and fund all in one dimension.
In both of these options in order to determine if the four part account key is valid I will have to use logic to say if Cost centre and nominal relation flag is 1 and Detail and nominal relation flag is 1 and Fund and nominal relation flag is 1 then valid otherwise not valid.
I am thinking the first option is the best one
I would be grateful if anyone can propose anything better or comment on my options?
cheers, Mark
Hope the following makes sense
Just looking for some design advice before proceeding with the actual work.
I have created a journal template in TM1 (websheet) which includes lots of validation.
There are 4 parts to the organisations chart of accounts, they are Cost Centre, Detail Code, Fund and Nominal.
I can use dimix or the disabled flag attribute to test if each of these 4 account keys is valid or not
However I also want to test if the codes can be used in combination, so are valid 4 part keys – i.e. are the relationships valid or not (this can be done outside TM1 via some validation software but the users don't always make use of it and sometimes invalid entries end up in the suspense accounts or are rejected by the general ledger).
The account relationship is between the nominals and the other 3 keys.
What I am puzzling over is how to create the cube to hold this information.
I can use sql to link to an account relation table to populate TM1. It should be noted that this table holds the nominal in one column and in another column holds the other 3 account keys, in other words there isn’t a column for each account key, they are all in the same column. So you can’t determine if the four part combination is valid from a row in this table, you can only say for example Nominal X appears in the nominal column and in the other column Cost Centre Y appears therefore X and Y is a valid combination.
I think I have 2 options:
1) Create 3 cubes, one for Cost Centre, one for Detail and one for Fund and have 3 dimensions in each cube, the other dimensions being Nominal and a measure to flag 1 if the relationship is valid.
2) Create one cube and have the nominal and measure dimension and create a new dimension to hold Cost Centre, detail and fund all in one dimension.
In both of these options in order to determine if the four part account key is valid I will have to use logic to say if Cost centre and nominal relation flag is 1 and Detail and nominal relation flag is 1 and Fund and nominal relation flag is 1 then valid otherwise not valid.
I am thinking the first option is the best one
I would be grateful if anyone can propose anything better or comment on my options?
cheers, Mark