cancel
Showing results for 
Search instead for 
Did you mean: 

Bex Query - Show rows from another characteristic

Former Member
0 Kudos

Hi Guys,

I have a problem, I need to create a query to be displayed in Excel that shows accounting informacion by number, like this:

Account Balance

12110201 1 USD

12110202 1 USD

12110204 1 USD

.

.

.

That works so far, the problem is that I need to add 2 more columns and in 1 of the new columns I need to show only some accounts, like this:

Account Balance NewColumn1

12110201 1 USD

12110202 1 USD Balance of 12110202

12110204 1 USD

the other one is more challenging because it need to show informacion from a different account, like this:

Account Balance NewColumn1 NewColumn2

12110201 1 USD

12110202 1 USD Balance of 12110202

12110204 1 USD Balance of 2406910000

the first values came from my accounts tables that contain balance from sub accounts, but the value 2406910000 is in fact a sub account value.

Can some of you expers can help me on this? Is it possible?

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

if u xplain more about how to obtain new columns that can be helpful.

you can do this using Cell definitions

it can occur if u have 2 structures.

u can use replacement path variable to replace values of Sub account which i am assumin is in rows to provide the value in columns.

Another thing u cannot show "Balance of " as this is a text and u cannot produce text simply in BW

although u can replace values of Subaccount only values in columns from rows.

But this cannot be done for random selection...

you have to xplain at which instance what values need to be shown.

for e.g. in ur scenario u need to show Balance in 3rd column, second row.

so even if u change parameteres with cell definition it will always show balance in this place.

similarly in 3rd column , 3rd row it will always display the Sub account value.

u can use formulaes, boolean logic etc. to solve this.

but not randomly,

Former Member
0 Kudos

Hi kartikey,

Thanks for the quick response, Im using a multiprovider to combine the Accounts and sub accounts with their balance, and theres some specific cases where the value doesnt come from the account but from the sub account itself, for example:

Account NewCol1

22140000 Balance of 22140000

22140100 nothing here

22140101 Balance of 22140101

In this case 22140101 is a subaccount from 22140100.

This happens in only like 3 or 4 times so its not too much work to indicate when to use the subaccount or not, the problem is i dont know how can it be done

Can you give me more details on how to use cell definitions? do you think that will fix the problem?

Thanks in advance

Former Member
0 Kudos

hmmmm

let me ask this:

You have multiprovider A

in that u have Chars

Account

Subaccount

Source of subaccount

& Keyfigures

$ amounts

okey now, lets say u want to display the data as follow:

-


$amount-----newcolumn1

Account----


-


2244--


$2200--


-


2245--


$3200--


bal. of 1234

-


2246--


$4200--


-


2247--


$1200-----bal. of 734

is that what u are asking to display....

if yes, bring Account in Rows

bring $amount in Collumns

add new selection1, in that add $amounts, then add Subaccounts from characteristics

that way it will show $ for subaccount

for e.g. in above case it will show $value for 1234 which is subaccount of 2245.

My question is when you say "Balance of 22140000" what is that you intend to display here....you want to show $ of Balance i.e $45, $56 etc, or

do you want to show Subaccount Number i.e 1234 or

do u want to show specific texts "Balance of 22140000"

my response above was related to this only, what is that you want to show in ur reports?

what is available in ur multiprovider?

if you wanna show specific texts "Balance of 22140000", this cannot be done because you cannot just create texts in Query designers.

If you wanna show specific $ amounts for that subaccount, answer is create restricted keyfigure

if you wanna show Subaccount Number i.e 1234 etc, that means you will have to create Replacement path variable and then replace values of Subaccount number into that column.

Maybe you will not need cell definition then.

i hope you understand what i am trying to explain..

dont hesitate to reply with detailed explaination, and any questions.

Former Member
0 Kudos

Hi again,

Yes I have a multiprovider with:

Chars

Account

Subaccount

Source of subaccount

Keyfigures

$ amounts

Sorry for the confusion, I checked again the request and here what they want:

SubAccounts Amount NewCol1

120305010200 1 dll

120305020000 1 dll

120305020100 1 dll Amount for SubAccount 22110201

120305020200 1 dll Amount for SubAccount 22110202

120305030000 1 dll

120305030100 1 dll Amount fo Account 1209910000

120305030200 1 dll

Something like that, new column is only going to display the amount for a few subaccounts and even fewer amounts for accounts, these needs to be done on specific rows.

Hope I didnt confuse you, I really appreciate the help, please let me know if I can help you with anything else.

Former Member
0 Kudos

then go with Restricted Keyfigure options.

as you said the $ amount in newcolumn will be available only for specific cases,

then

create a new restricted keyfigure

right click and say new selection

bring in $ amount keyfigure

bring in Subaccounts

hit and save okay

that way you will see $ amounts for Only subaccounts in that column.

Rest all other cells will be empty.

the only way to say thanks is by giving Points.

Former Member
0 Kudos

lets say this is how the data is in your Multiprovider

Account--$amount---Subaccnt $

2244--


$2200--


2245----


123

2246--


$4200--


2247----


341

3244--


$2200--


3245----


123

So, the Restricted keyfigure will work out for you.

try it out and compare with data in multiprovider

Former Member
0 Kudos

Thanks, thats a great option but, I guees that by doing it will display the accounts that I choose to restrict but they will appear all in the top, right?

It will look like:

SubAccounts Amount NewCol1

120305010200 1 dll Amount for SubAccount 22110201

120305020000 1 dll Amount for SubAccount 22110202

120305020100 1 dll Amount fo Account 1209910000

120305020200 1 dll

120305030000 1 dll

120305030100 1 dll

120305030200 1 dll

Instead of:

SubAccounts Amount NewCol1

120305010200 1 dll

120305020000 1 dll

120305020100 1 dll Amount for SubAccount 22110201

120305020200 1 dll Amount for SubAccount 22110202

120305030000 1 dll

120305030100 1 dll Amount fo Account 1209910000

120305030200 1 dll

Im right?

Former Member
0 Kudos

It will look like :

SubAccounts Amount NewCol1

120305010200 1 dll Amount for SubAccount 22110201

120305020000 1 dll Amount for SubAccount 22110202

120305020100 1 dll Amount fo Account 1209910000

120305020200 1 dll

120305030000 1 dll

120305030100 1 dll

120305030200 1 dll

No, it s not necessary that it will always look like that.

You can play around with Sort Values in Queries.

Put the Sort Ascending, change this property on Subaccounts

Play around with Sort property of Amount.

You can have the display like you need.

But i think, main point here is "Restricted Keyfigure", first if you are getting that result CORRECTLY or not.

Later on you can play around with Sort Option, Display result as etc. to make the display appropriate etc...

Former Member
0 Kudos

Thanks a lot kartikey, Im currently checking your solution, I will let you know.

Former Member
0 Kudos

Thanks a lot kartikey,

It works like you said, the subaccount are displayed in the right level, the problem is that the users for some reason dont want the subaccounts in the right level, heres a explanation:

This part is ok and works now

Accounts Amount NEWCOL

221102000000 3 dlls

-221102010000 1 dll

-221102020000 1 dll

-221102040000 1 dll

.

.

.

the accounts continue..

.

.

Accounts Amount NEWCOL

121101020000 1 dll Amount from 221101000000

121101040000 1 dll Amount from 221102000000

121102000000 1 dll Amount from 221103000000

121102000000

121102010000 1 dll Amount from 221101000000

121102020000 1 dll Amount from 221102000000

121102040000 1 dll Amount from 221103000000

in adition they want another 2 columns to do some calculations and they need the amount from the last 3 subaccounts to be displayed at the same level as these accounts like shows above.

I know it doesnt make much sense, well at least it doesnt do to me , but that how they want it.

Answers (0)