Best Of
Re: Email connector - header row error
@NFerna Can you please share a screenshot of all your settings on the connector?
Re: How to remove min/max/avg from Bullet Chart
Thank you!! The older card does have a target value, the new one does not as I have not brought targets into the dataset yet. I tested adding a random field to the target value which successfully removed the min/max/avg lines.
Re: Interactive Calendar Filter
@Atieh Yes, support should be able to help you with the bug and implementing the fiscal calendar!
Re: Interactive Calendar Filter
I have done a ton of testing and I am quite sure this is a bug. I would submit a support case to Domo to investigate.
Re: How to create DoD variance formula
Does your dataset always have data for each day? In other words, if on a particular day, the value is zero, will it show up as a row with the date, and a value of zero, or is the row for that date simply not in the dataset?
If the former, here are some details on how you could achieve this. Note, this also assumes that the data is already aggregated up by day and group. If not, you'll need to do that aggregation first. If you don't have data for each day, and you want to compare to the last 3 days, and not the last 3 values, you'll need to combine your data to a date dimensions table.
For instance, say you have this example dataset.
First thing is to use the Rank & Window Tile to create a lag function
From there we can create a function called "alert_triggered" that will evaluate if the value changed by > 90% or is equal to 0. We set the output as either 1 or 0 (true or false). I assumed since you said variance that you meant a 90% swing in either direction, which is why it's wrapped in an ABS() function.
case
when ABS((value-3_days_ago)/3_days_ago) > .9
or value = 0
then 1
else 0
end
From there you can use the alert_triggered column in your Summary Number. You would then set up your alert to trigger when Summary Number > 0
Re: Multi-Line Chart with a "Stacked" Y-Axis?
@GarethR - there are 2 possible options.
Domo has something called a flex table (see below).
You could also use a faceted bar chart if your output doesn't have to be a line.
Re: Having both horizontal and verticle marker on a Line Chart
I don't know about the default line chart. But I can do it in a brick.
<html> <head> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation"></script> </head> <body> <canvas id="myChart"></canvas> </body> </html>
const ctx = document.getElementById('myChart').getContext('2d');
const myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'Dataset',
data: [65, 59, 80, 81, 56, 55, 40],
borderColor: 'rgba(75, 192, 192, 1)',
borderWidth: 1,
fill: false
}]
},
options: {
scales: {
x: {
beginAtZero: true
},
y: {
beginAtZero: true
}
},
plugins: {
annotation: {
annotations: {
verticalLine: {
type: 'line',
xMin: 3, // Position on the X axis
xMax: 3,
borderColor: 'rgba(255, 99, 132, 1)',
borderWidth: 2
},
horizontalLine: {
type: 'line',
yMin: 70, // Position on the Y axis
yMax: 70,
borderColor: 'rgba(54, 162, 235, 1)',
borderWidth: 2
}
}
}
}
}
});










