Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have 2 tables in my data model: Accounts - the main one and Filters - the one I want to use for presenting data in a given format:
Accounts:
Account | Syntetic | Value | Sign |
---|---|---|---|
201-1-7-39 | 201 | 100 | 1 |
201-2-3-4-67 | 201 | 129 | 1 |
202-4-3 | 202 | 148 | -1 |
459 | 459 | 35 | 1 |
Filters:
Level1 | Level2 | Filter |
---|---|---|
1.Fixed Assets | 1.1 Buildings | 201-1 |
1.Fixed Assets | 1.2 Computers | 201-2 |
2.Current Assets | 202 | |
3. Bank Charges | 459 |
I would like to present the data in sort of the filtered format, where Output=Value * Sign for all the rows from Accounts: table matching the Filter from Filters: table
Output:
Level1 | Level2 | Filter | Output |
---|---|---|---|
1.Fixed Assets | 1.1 Buildings | 201 | 100*1 + 129 *1 |
1.Fixed Assets | 1.2 Computers | 201-2 | 129 * 1 |
2.Current Assets | 202 | 148*(-1) | |
3. Bank charges | 459 | 35*1 |
Challenges:
Question:
How can I create a connection key to put those 2 tables in relation?
Any help would be appreciated
Ki
Hi Ki Cso, the simple solution is create Link table for this table and Link table must have the all the Combinations against Filter & Account Filter.
Please find the attached file as reference.
PFA