Hi there,
I have two tables in my DataModel.
GL Account
This table describes the GL accounts. Some of the accounts are totaling accounts, ie they sum the total of other accounts. Totaling accounts have a text string that describes which accounts they should include in their total, eg:
GL Entry
This table holds the GL postings. Each entry has a value and an account.
I would like to be able to select a totaling account and then get a grand total of all entries related to that account either directly or indirectly (through totaling accounts). But how do I best accomplish this? Does DAX have a foreach function of sorts that can run through the text string? Or should I somehow create a new table for account relationships?
Hope you can help!
Thanks,
Martin
I have two tables in my DataModel.
GL Account
This table describes the GL accounts. Some of the accounts are totaling accounts, ie they sum the total of other accounts. Totaling accounts have a text string that describes which accounts they should include in their total, eg:
- "X" <- Includes only account X.
- "X..Y" <- Includes accounts in range X to Y.
- "X..Y|Z" <- Includes accounts in range X to Y plus account Z.
GL Entry
This table holds the GL postings. Each entry has a value and an account.
I would like to be able to select a totaling account and then get a grand total of all entries related to that account either directly or indirectly (through totaling accounts). But how do I best accomplish this? Does DAX have a foreach function of sorts that can run through the text string? Or should I somehow create a new table for account relationships?
Hope you can help!
Thanks,
Martin