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
You're only one dashboard away.
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".
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0 -
@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
You're only one dashboard away.
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".
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0 -
@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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive