![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, maybe this question was asked before... but I didn't find the solution... I know about ytd(). This gives you i.e. an amount summed up over the year. What I need is a somehting like a td(), so the sum of everything till today (better: the current date). The problem is to set up a Balance Sheet on a fact table which doesn't give you balance i.e. per month but each posting. So the current balance is the sum of all postings since the start of the business... What can I do? Thanks, Thomas |
#3
| |||
| |||
|
|
Well this is then a range of the first date till selected one. you can specify in MDX range. Lets say that time dimension starts with 1.1.2000 and you want to see the sum of all dates till selected one - but in this case the selected one must be in level Days -> you have to make rules for levels. {[Time].&[2000].&[12].&[21]:[Time].currentmember} HTH, Andrej "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> wrote in message news:uhDkWC25EHA.4028 (AT) TK2MSFTNGP15 (DOT) phx.gbl... Hi, maybe this question was asked before... but I didn't find the solution... I know about ytd(). This gives you i.e. an amount summed up over the year. What I need is a somehting like a td(), so the sum of everything till today (better: the current date). The problem is to set up a Balance Sheet on a fact table which doesn't give you balance i.e. per month but each posting. So the current balance is the sum of all postings since the start of the business... What can I do? Thanks, Thomas |
#4
| |||
| |||
|
|
Andrej, thanks, this works perfectly... But only, if you have a posting on the currentdate... If that member is empty, it returns NULL... Any idea for that? Thanks again Thomas "Andrej Hudoklin" <andrej.hudoklin (AT) add (DOT) si> schrieb im Newsbeitrag news:O75PSe25EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Well this is then a range of the first date till selected one. you can specify in MDX range. Lets say that time dimension starts with 1.1.2000 and you want to see the sum of all dates till selected one - but in this case the selected one must be in level Days -> you have to make rules for levels. {[Time].&[2000].&[12].&[21]:[Time].currentmember} HTH, Andrej "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> wrote in message news:uhDkWC25EHA.4028 (AT) TK2MSFTNGP15 (DOT) phx.gbl... Hi, maybe this question was asked before... but I didn't find the solution... I know about ytd(). This gives you i.e. an amount summed up over the year. What I need is a somehting like a td(), so the sum of everything till today (better: the current date). The problem is to set up a Balance Sheet on a fact table which doesn't give you balance i.e. per month but each posting. So the current balance is the sum of all postings since the start of the business... What can I do? Thanks, Thomas |
#5
| |||
| |||
|
|
Hi, I found a solution on myself... It's quite slow but it works... sum({head( FILTER({[Date].[Year].&[2003].&[2].&[4].&[20030401] : [Date].CURRENTMEMBER}, NOT ISEMPTY([Measures].[Amount]))).ITEM(0): TAIL( FILTER({[Date].[Year].&[2003].&[2].&[4].&[20030401] : [Date].CURRENTMEMBER}, NOT ISEMPTY([Measures].[Amount]))).ITEM(0)} ,[Measures].[Amount]) Thomas "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> schrieb im Newsbeitrag news:%23r8TxYA6EHA.824 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Andrej, thanks, this works perfectly... But only, if you have a posting on the currentdate... If that member is empty, it returns NULL... Any idea for that? Thanks again Thomas "Andrej Hudoklin" <andrej.hudoklin (AT) add (DOT) si> schrieb im Newsbeitrag news:O75PSe25EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Well this is then a range of the first date till selected one. you can specify in MDX range. Lets say that time dimension starts with 1.1.2000 and you want to see the sum of all dates till selected one - but in this case the selected one must be in level Days -> you have to make rules for levels. {[Time].&[2000].&[12].&[21]:[Time].currentmember} HTH, Andrej "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> wrote in message news:uhDkWC25EHA.4028 (AT) TK2MSFTNGP15 (DOT) phx.gbl... Hi, maybe this question was asked before... but I didn't find the solution... I know about ytd(). This gives you i.e. an amount summed up over the year. What I need is a somehting like a td(), so the sum of everything till today (better: the current date). The problem is to set up a Balance Sheet on a fact table which doesn't give you balance i.e. per month but each posting. So the current balance is the sum of all postings since the start of the business... What can I do? Thanks, Thomas |
#6
| |||
| |||
|
|
Is there any reason you use head and tail? I think following expression give you the same results. SUM( FILTER( {[Date].[Year].&[2003].&[2].&[4].&[20030401] : [Date].CURRENTMEMBER}, NOT ISEMPTY([Measures].[Amount]) ), [Measures].[Amount] ) Ohjoo Kwon www.olapforum.com "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> wrote in message news:ek$m0xD6EHA.208 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi, I found a solution on myself... It's quite slow but it works... sum({head( FILTER({[Date].[Year].&[2003].&[2].&[4].&[20030401] : [Date].CURRENTMEMBER}, NOT ISEMPTY([Measures].[Amount]))).ITEM(0): TAIL( FILTER({[Date].[Year].&[2003].&[2].&[4].&[20030401] : [Date].CURRENTMEMBER}, NOT ISEMPTY([Measures].[Amount]))).ITEM(0)} ,[Measures].[Amount]) Thomas "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> schrieb im Newsbeitrag news:%23r8TxYA6EHA.824 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Andrej, thanks, this works perfectly... But only, if you have a posting on the currentdate... If that member is empty, it returns NULL... Any idea for that? Thanks again Thomas "Andrej Hudoklin" <andrej.hudoklin (AT) add (DOT) si> schrieb im Newsbeitrag news:O75PSe25EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Well this is then a range of the first date till selected one. you can specify in MDX range. Lets say that time dimension starts with 1.1.2000 and you want to see the sum of all dates till selected one - but in this case the selected one must be in level Days -> you have to make rules for levels. {[Time].&[2000].&[12].&[21]:[Time].currentmember} HTH, Andrej "Thomas Pagel" <tpagel (AT) _nospam_ (DOT) software4you.com._nospam_> wrote in message news:uhDkWC25EHA.4028 (AT) TK2MSFTNGP15 (DOT) phx.gbl... Hi, maybe this question was asked before... but I didn't find the solution... I know about ytd(). This gives you i.e. an amount summed up over the year. What I need is a somehting like a td(), so the sum of everything till today (better: the current date). The problem is to set up a Balance Sheet on a fact table which doesn't give you balance i.e. per month but each posting. So the current balance is the sum of all postings since the start of the business... What can I do? Thanks, Thomas |
![]() |
| Thread Tools | |
| Display Modes | |
| |