Hi experts,
I have a problem with filtering a hierarchy which consists of duplicate leaves (accounts).
The report is created in BEx Query Designer.
In my example I have hierarchy of accounts where account 1000 is posted as duplicated under 2 different nodes of the account hierarchy:
top node
node 1 - costs
node 11
account 1000 (we should display only debits here)
node 12
account 2000
node 13
node 2 - profits
node 21
account 1000 (we should display only credits here)
node 22
account 3000
Under node 11 we want to see only debits (as it is included in a part of hierarchy where costs are reported only). Under node 21 we want to display credits only (because it is in hierarchy part where profits should be displayed only). However, the other accounts in the hierarchy (e.g. account 2000 and 3000) are not filtered by debit or credit. The debit or credit information is stored in independent infoobject (0db_cr_ind), not related to hierarchy.
My solution was to create a restricted key figure with filter on node 11 and only debit filter on infoobject 0DB_CR_IND. And similarly to create a second restricted key figure with filter on hierarchy node 21 and credit only filter on infoobject 0DB_CR_IND.
The issue is that the restriction on hierarchy node does not work (system displays values for both nodes). So in my report I have 2 restricted key figures showing data restricted only based on debit/credit, but not based on hierarchy node:
Actual report output (wrong):
top node RKF debit RKF credit
node 1 - costs
node 11
account 1000 30 70
node 2 - profits
node 21
account 1000 30 70
What report should display (wished result):
top node RKF debit RKF credit
node 1 - costs
node 11
account 1000 30 0
node 2 - profits
node 21
account 1000 0 70
My explanation (but I might be wrong) is that the system only works with hierarchy until it derives the bottom leaves (accounts), but when it finds the concerned accounts it does not bother with the hierarchy nodes anymore (and therefore the filter on hierarchy node does not work)...
The hierarchy must be flexible in reporting (no fixed structure in BEx), it is uploaded regularly from SAP ECC source system.
Is it possible to find the concerned hierarchy node (of certain level) from the displayed account in my hierarchy (via BEx replacement path variable)?
We are on BI 7.1
Any suggestions?
Thank you very much for any input on this topic.
Michal