How do I create a saved search formula that will a...
# ask-stanley-ai
m
How do I create a saved search formula that will always pull the first line out of any transaction? use a different approach, such as sorting by line number and limiting the results to 1.
c
AI generated answer (using internal Slack threads):
To create a saved search formula that will always pull the first line out of any transaction, you can use the following approach: 1. Create a new transaction search. 2. In the criteria tab, add a new filter for 'Line' and set it to 1. This will ensure that only the first line of each transaction is returned. 3. In the results tab, add the fields you want to display for each transaction. Here is a sample formula you can use:
Copy code
CASE WHEN {line} = 1 THEN {transactionnumber} ELSE NULL END
This formula will return the transaction number if the line number is 1 (the first line), and NULL for all other lines. You can replace
{transactionnumber}
with any other field you want to display. Remember to set the Summary Type for this formula to 'Group' to ensure that only unique values are returned. ****** 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.846654952
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846179068
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840508223
Please provide your feedback on this answer.