Best Of
Re: New User - Help with Filling Forward Previous Incident Date
Hello @CRBrown,
Providing a sample of your data would be helpful. Based on my understanding of your request, you can use the 'Group' tile to find the MAX('Citation Date') for each location and then join it back to the main dataset.
For the second question, the following Beast Mode formula should meet your needs.
DATEDIFF(CURRENT_DATE(), MAX(CITATION_DATE))
Re: Filter Month based on Last working Day
Not to be outdone by John 😁, I created a video that walks you through how to do what I explained.
Re: Apply a % Model based on an identifying field
This might be the most in depth and detailed response I've ever received to a challenge before! Thank you so much.. When I am back on this project, I will be implementing this solution!
Re: Bullet chart color rule
@ArborRose Yeah, with arrows like that, you could also make your target 100% transparent and just use the data label as the target (centered data-label from tool-tip, symbols-only data-label):
Case
when Price* Quantity >= Budget then '🔹'
when Price* Quantity < Budget then '🔻'
END
Re: Sentiment Analysis on Facebook Comments
I don't see any reason why you couldn't. You could use the Python tiles to create a custom model or leverage built-in libraries. Use Domo's social media connectors to pull comments or posts to Domo or call with API. Or consider using Domo's Jupyter Notebooks (Python).
Something like this
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import pandas as pd
# Load the dataset
df = pd.DataFrame(input_data)
# Initialize VADER
analyzer = SentimentIntensityAnalyzer()
# Analyze sentiment
def analyze_sentiment(comment):
scores = analyzer.polarity_scores(comment)
return scores['compound']
# Apply sentiment analysis to comments
df['sentiment_score'] = df['comment'].apply(analyze_sentiment)
# Label sentiment as Positive, Neutral, or Negative
def label_sentiment(score):
if score > 0.05:
return 'Positive'
elif score < -0.05:
return 'Negative'
else:
return 'Neutral'
df['sentiment_label'] = df['sentiment_score'].apply(label_sentiment)
output_data = df
Re: Bullet chart color rule
@DavidChurchman - I really like this trick. How about maybe point up or down based on budget?
- Up arrow: ↑ (Unicode:
U+2191)
- Down arrow: ↓ (Unicode:
U+2193)
- Up-pointing triangle: ▲ (Unicode:
U+25B2)
- Down-pointing triangle: ▼ (Unicode:
U+25BC)
Re: Bullet chart color rule
Wow, that's a really clever approach @DavidChurchman. I did not catch that it was a bullet chart vs a horizonal bar.
Re: Workflows Form Error: Assignee does not have update content access to queue
Nate - thanks for sharing your experience. I will make sure that engineering sees this.
Re: Filter Month based on Last working Day
As I understand your question, you want to filter your card to the month that the last working day is in. This is a great use case for a nested beast mode as it makes it much cleaner to look at. Here is what I would do:
Create a beast mode called LastWorkingDay with a formula that looks like this:
/* If today is Sunday, subtract 2 days /
CASE WHEN DAYOFWEEK(CURRENT_DATE()) = 1 THEN
DATE_SUB(CURRENT_DATE(), INTERVAL 2 day)
/ If today is Monday, subtract 3 days /
WHEN DAYOFWEEK(CURRENT_DATE()) = 2 THEN
DATE_SUB(CURRENT_DATE(), INTERVAL 3 day)
/ All other days, subtract 1 day */
ELSE
DATE_SUB(CURRENT_DATE(), INTERVAL 1 day)
END
Save and validate and then create a new beast mode that looks like this:
CASE WHEN LAST_DAY(dt) = LAST_DAY(LastWorkingDay) THEN 'Include'
ELSE 'Exclude'
END
Drag this into your filters and set to Include. Also, sent your date range filter last 2 months, which will keep future dates out automatically.
The first function checks to see which day of the week it is and subtracts the necessary days from the current date.
The second function uses that date and compares it to the date from your dataset (dt) and checks to see if they are in the same month and year by using the LAST_DAY function.
Hope this helps.




