Hi,
Is there a more efficient way to replace "Cash" with "Other Income"? I created a Group By Journal ID to identify which Journal IDs have an "Other Income" row and replaced GL Name with GroupBy.JournalID if GroupBy.JournalID is not null.
GroupBy Journal ID - Grouped by Journal ID and filtered for "Other Income". I then merged this query with the main one and added "GroupBy.JournalID" column .
I also need to replace the journal ID if it's a 1:1 entry in journals with multiple rows and add a suffix at the end, ie Journal ID 125-1.
This was my long process: I created 3 columns debit (positive values), credit (negative values) and absolute values of Debit/(Credit). Then Grouped by, merged that with the main report and added GroupBy.Credit column, then added 1:1 entry column to check if there's a match (Absolute Values = GroupBy.Credit). Then added yet another column New Journal ID to add the suffix if True.
Is there a way to achieve this with less queries and less steps? I think it's slowing down my file a lot, and it takes longer to refresh my report, sometimes it crashes if it took too long
Any help would be greatly appreciated! Thanks so much in advance!!
Group By Journal ID, Memo and Credit, then filtered out the zeros
Is there a more efficient way to replace "Cash" with "Other Income"? I created a Group By Journal ID to identify which Journal IDs have an "Other Income" row and replaced GL Name with GroupBy.JournalID if GroupBy.JournalID is not null.
Journal ID | Memo | GL Name | Debit/(Credit) | GroupBy.JournalID |
---|---|---|---|---|
123 | Income | Cash | 100 | Other Income |
123 | Income | Other Income | (100) | Other Income |
124 | Income | Cash | 200 | Other Income |
124 | Income | Other Income | (200) | Other Income |
125 | Accruals | Expense | 100 | null |
125 | Accruals | Expense-Tax | 200 | null |
125 | Accruals | Expense-Rent | 100 | null |
125 | Accruals | Expense-Bookkeeping | 350 | null |
125 | Accruals | Expense-Supplies | 100 | null |
125 | Accruals | Liability-Professional fees | (350) | null |
125 | Accruals | Liability-Other | (500) | null |
GroupBy Journal ID - Grouped by Journal ID and filtered for "Other Income". I then merged this query with the main one and added "GroupBy.JournalID" column .
Journal ID | GL Name |
---|---|
123 | Other Income |
124 | Other Income |
I also need to replace the journal ID if it's a 1:1 entry in journals with multiple rows and add a suffix at the end, ie Journal ID 125-1.
This was my long process: I created 3 columns debit (positive values), credit (negative values) and absolute values of Debit/(Credit). Then Grouped by, merged that with the main report and added GroupBy.Credit column, then added 1:1 entry column to check if there's a match (Absolute Values = GroupBy.Credit). Then added yet another column New Journal ID to add the suffix if True.
Is there a way to achieve this with less queries and less steps? I think it's slowing down my file a lot, and it takes longer to refresh my report, sometimes it crashes if it took too long
![Frown :( :(](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f641.png)
Journal ID | Memo | GL Name | Debit/(Credit) | Absolute Values | Debit | Credit | GroupBy.Credit | 1:1 entry | New Journal ID |
---|---|---|---|---|---|---|---|---|---|
125 | Accruals | Expense | 100 | 100 | 100 | 0 | null | False | 125 |
125 | Accruals | Expense-Tax | 200 | 200 | 200 | 0 | null | False | 125 |
125 | Accruals | Expense-Rent | 100 | 100 | 100 | 0 | null | False | 125 |
125 | Accruals | Expense-Bookkeeping | 350 | 350 | 350 | 0 | 350 | True | 125-1 |
125 | Accruals | Expense-Supplies | 100 | 100 | 100 | 0 | null | False | 125 |
125 | Accruals | Liability-Professional fees | (350) | 350 | 0 | 350 | 350 | True | 125-1 |
125 | Accruals | Liability-Other | (500) | 500 | 0 | 500 | null | False | 125 |
Group By Journal ID, Memo and Credit, then filtered out the zeros
Journal ID | Memo | Credit |
---|---|---|
125 | Accruals | 350 |
125 | Accruals | 500 |