Table to display number of null values
Hello,
I am trying to create a table to display the number of blank cells in some columns in analyzer. I calculated the blank cell count using beast modes. However, when I filter in analyzer to display the blank cells as a count aggregation, the count evidently decreases in all fields as the filter function is an intersection, rather than analyzes each field independently. Any advice on how can this be achieved independently?
Thanks!
Best Answers
-
Hi @Victoria_G1 ,
so you'll need a new formula that says "Case when (formula you have above)='None' Then 1 else 0 end and then you can sum those 1's.
John Le
Let me make you the me of your organization for Domo
Click here for more video solutions:
0 -
From your first question, it sounds like you are trying to filter your dataset for null values. The issue here is that NULL does not equal anything (not even itself). If you want to filter for null values, I would create a beastmode:
IFNULL(`ExtRR Market`, 'NULL')
You can then filter by this field for the value "NULL".
0 -
@Victoria_G1, just making sure we're following correctly. You already have a formula that tells you the number of blanks across multiple columns, and is working properly, the problem comes when you want to filter things out, that the count changes, is this right?
The question I have is whether you expect the filter to actually limit the rows displayed and being used for the card, but not affecting the "summary" null count, if that is the case you could achieve this with the help of the FIXED function, so that it'll always run totals from the full dataset, regardless of the filters applied.
On the other hand, if you want a filter you can use to limit to only rows that contain blank cells, then you'd need to create a beast mode, as filters in Domo are always added in a required way (AND logic) and you cannot define filter logic (sadly). Something like:
CASE WHEN '[BLANK]' IN (IFNULL(`Col1`,'[BLANK]'),IFNULL(`Col2`,'[BLANK]'),…) THEN '[BLANK]' ELSE '[FULL]' END
And filter on whether this new Beast Mode returns
[BLANK]
meaning that at least 1 of theCol#
is null. Hope this helps.0
Answers
-
In addition, given this formula, how do I count all the cells that have ''None' in them?
0 -
Hi @Victoria_G1 ,
so you'll need a new formula that says "Case when (formula you have above)='None' Then 1 else 0 end and then you can sum those 1's.
John Le
Let me make you the me of your organization for Domo
Click here for more video solutions:
0 -
From your first question, it sounds like you are trying to filter your dataset for null values. The issue here is that NULL does not equal anything (not even itself). If you want to filter for null values, I would create a beastmode:
IFNULL(`ExtRR Market`, 'NULL')
You can then filter by this field for the value "NULL".
0 -
@Victoria_G1, just making sure we're following correctly. You already have a formula that tells you the number of blanks across multiple columns, and is working properly, the problem comes when you want to filter things out, that the count changes, is this right?
The question I have is whether you expect the filter to actually limit the rows displayed and being used for the card, but not affecting the "summary" null count, if that is the case you could achieve this with the help of the FIXED function, so that it'll always run totals from the full dataset, regardless of the filters applied.
On the other hand, if you want a filter you can use to limit to only rows that contain blank cells, then you'd need to create a beast mode, as filters in Domo are always added in a required way (AND logic) and you cannot define filter logic (sadly). Something like:
CASE WHEN '[BLANK]' IN (IFNULL(`Col1`,'[BLANK]'),IFNULL(`Col2`,'[BLANK]'),…) THEN '[BLANK]' ELSE '[FULL]' END
And filter on whether this new Beast Mode returns
[BLANK]
meaning that at least 1 of theCol#
is null. Hope this helps.0
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
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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