what formulas can i use in a workbook that shows a...
# ask-stanley-ai
n
what formulas can i use in a workbook that shows all related previous transactions for each payment in a list on single row
c
AI generated answer (using internal Slack threads):
To create a workbook that shows all related previous transactions for each payment in a list on a single row, you can use the
LISTAGG
or
NS_CONCAT
functions in your formula. These functions are used to combine multiple rows into one. Here is an example of how you can use these functions:
Copy code
SQL
LISTAGG({transaction}, ',') WITHIN GROUP (ORDER BY {transaction})
or
Copy code
SQL
NS_CONCAT({transaction})
These functions will concatenate all the transaction values into a single string, separated by a comma. You can also use the
CASE
statement in your formula to handle different conditions. For example:
Copy code
SQL
CASE WHEN {paidtransaction} != '' THEN {paidtransaction} ELSE {payingtransaction} END
This formula will return the
paidtransaction
if it's not empty, otherwise, it will return the
payingtransaction
. Remember to replace
{transaction}
,
{paidtransaction}
, and
{payingtransaction}
with your actual field identifiers. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.787489355
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.78734988
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.78404969
Please provide your feedback on this answer.