How to make NULL values display on a Table?
Essentially what I'm trying to do is....
SELECT DISTINCT Loan_Type
FROM Dataset within a beastmode.
I'm an having an issue where if no data exists for Type B then the entire row of the table disappears verses the type name being visible and 0s displaying.
How can I resolve?
What I want:
Type Count
Type A 5
Type B 0
Type C 1
What's happening:
Type Count
Type A 5
Type C 1
Answers
-
You can create a beast mode that would turn a null to 0 with this:
IFNULL('Count',0)
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
@MarkSnodgrass is correct, you can fill NULLs with 0 ; however, that only works if there is a row in the dataset for Type B on that date (or whatever the rest of your criteria are).
Domo cannot generate data for an axis if the data doesn't exist.
If Type B doesn't exist in your data, there's nothing to fill. Confirm that the data exists and if it doesn't create a placeholder row.
Jae Wilson
Check out my š„ Domo Training YouTube Channel šØāš»
**Say "Thanks" by clicking the ā¤ļø in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
@jaeW_at_Onyx How can I go about creating a placeholder row?
0 -
@estelle531 You can create the placeholder row by using Magic ETL. You would need a dataset that has a list of your different types and then do a left join to your main dataset and join on the type column. This will insert any missing types and have a null value for your count. You can then use the IFNULL function to replace it with 0.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
@estelle531 you would need to build the universe of template rows at the granularity you want to be able to filter / pivot your data on.
in this video I describe it as "building the universe" of options
Jae Wilson
Check out my š„ Domo Training YouTube Channel šØāš»
**Say "Thanks" by clicking the ā¤ļø in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
@jaeW_at_Onyx and @MarkSnodgrass
Thank you both so much for the help. I'm gonna try to implement the suggestions you gave and I will let you know how it goes.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive