Using Beast Mode to substitute null fields
Best Answer

Let's make some modifications on the beast modes:
Resolved:
SUM(CASE WHEN `Status`='Resolved' THEN 1 ELSE 0 END)
Open:
SUM(CASE WHEN `Status`='Resolved' THEN 1 ELSE 0 END)
Don't mind the SUM() as it is just another way of counting the cases.Apply these ones with no aggregation. I did a graf by week and the results seem similar to yours:
Hope this helps, let me know if it works.
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0
Answers

Hi,
You can use on a beast mode :
IFNULL(YOUR_FIELD, 0)
Hope this helps.
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.1 
Hi Ricardo,
I actually tried this on two of my fields but it doesn't seem to change anything on the chart. I tried it on the field being counted in the Y axis and also tried it in the Series.
0 
I see...
I think that is because you are lacking dates in your xaxis.
Can you send a table view of your data?
Meanwhile, I'll think of something to address this if it's the case.
Regards
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0 

Ok,
I'm a little confused here. Does Case Number represent the number of cases that were open or solved in a given Date. What is the goal of the card?
If you could enlighten me a little more in order to give you the best answer.
Regards,
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0 
I'm sorry if I wasn't clear. What I'm doing on the card is counting the number of `Case Number` and using `Status` as the series. This shows me how many cases were opened each week and of those, which ones are still open and which ones are resolved. What I'm looking to do is to show that '0' are still open for the gaps in the chart.
0 
Ok,
So, if I correctly understood the card goal, give this a go:
Create 2 Beast Modes like this :
BeastMode OPEN:
CASE WHEN `Status`='Open' THEN `Case Number` ELSE 0 END
BeastMode Resolved:
CASE WHEN `Status`='Resolved' THEN `Case Number` ELSE 0 END
Then apply them to your card this way:
I think this will give you the expected results.
Hope this helps, don't hesitate to ask if you need more help on this.
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0 
So I just tried this and SUM is not an option when I do this. I can either COUNT or use No Aggregation. When I applied this with COUNT, it looks like it combines to two values (open, resolved) into the same line on the chart.
0 
Ok,
Can you share a sample of the dataset you are getting the data from?
I wrongly thought that the table you sent was it, but it is just the table view of the card.
Regards
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0 

Let's make some modifications on the beast modes:
Resolved:
SUM(CASE WHEN `Status`='Resolved' THEN 1 ELSE 0 END)
Open:
SUM(CASE WHEN `Status`='Resolved' THEN 1 ELSE 0 END)
Don't mind the SUM() as it is just another way of counting the cases.Apply these ones with no aggregation. I did a graf by week and the results seem similar to yours:
Hope this helps, let me know if it works.
Ricardo Granada
MajorDomo@Lusiaves
**If the post solves your problem, mark it by clicking on "Accept as Solution"
**You can say "Thank you" by clicking the thumbs up in the post that helped you.0 
That did it! Thanks so much!!!!!
1
Categories
 All Categories
 1.7K Product Ideas
 1.7K Ideas Exchange
 1.5K Connect
 1.2K Connectors
 292 Workbench
 4 Cloud Amplifier
 8 Federated
 2.8K Transform
 95 SQL DataFlows
 602 Datasets
 2.1K Magic ETL
 3.7K Visualize
 2.4K Charting
 695 Beast Mode
 43 App Studio
 39 Variables
 658 Automate
 170 Apps
 441 APIs & Domo Developer
 42 Workflows
 5 DomoAI
 32 Predict
 12 Jupyter Workspaces
 20 R & Python Tiles
 386 Distribute
 111 Domo Everywhere
 269 Scheduled Reports
 6 Software Integrations
 113 Manage
 110 Governance & Security
 8 Domo University
 30 Product Releases
 Community Forums
 39 Getting Started
 29 Community Member Introductions
 98 Community Announcements
 Domo Community Gallery
 4.8K Archive