James Romito
11/05/2024, 12:05 AMCeligo AI
11/05/2024, 12:05 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you're on the right track with using a formula to pull out the work order data. However, it's not clear why the status field is causing issues. One possibility could be that the status field is not properly formatted or contains null values that are causing the formula to fail. You could try adding a condition to your formula to handle these cases. For example, you could use a CASE statement to check if the status field is null or not formatted correctly, and return a default value in these cases. Here's an example of how you could modify your formula:
sql
MIN/*_*/(CASE WHEN {status} IS NULL OR {status} NOT LIKE '%-%' THEN 'Default' ELSE {appliedtotransaction} END) OVER (PARTITION BY {internalid})
This formula will return 'Default' if the status field is null or does not contain a dash (you can replace this with whatever condition fits your data), and the applied transaction otherwise.
Remember to replace 'Default' and the condition in the LIKE clause with values that make sense for your data.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
11/05/2024, 12:05 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846303403
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839138448
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835840344
Celigo AI
11/05/2024, 12:05 AM