Filtering based on distinct count values
Hello,
The discussions I've found that are similar to this seem to suggest using ETL, which I think I might end up having to do, but just wanted to see if there are any beastmode ideas out there.
I'll refer to the column headers as Date, Collection Code, Donor, Donation ID, Data Entered?, Distinct Count of Data Entered, Distinct Count of Donations.
Each row will always have a Donation ID. Some Donation ID's were or were not Data Entered.
What I am trying to do is compare the number of Data Entered to the total number of donations.
Donation ID is a unique value, but there are necessary duplications of donation ID's sprinkled throughout our data, hence the Distinct Count of Data Entered ( count distinct case when "data entered" = "yes" then "donation id") and Distinct Count of Donation ID ( count distinct "donation_id).
These are then grouped by collection date and collection code in a column chart. Up to this point, all has worked fine. I have attached some sample data, with the first two charts being the manipulation of the raw data, and the 3rd chart being how it looks now.
The problem I am having is that if there were 0 data entries for a grouped date/collection code, I do not want that row to show at all. But, if I filter my Data Entry to 0's, then obviously this effects my count of donations because it removes all donations that were not data entered.
I also cant filter Distinct Count of Data Entered.
Best Answer
-
Unfortunately, you can't filter a card based on an agregate value. That means that if you want to filter out the combinations on Date and Collection Code that contain no Data entries, then you would need to first work that into a dataflow. Either ETL or MySQL, so that the card can then filter on it.
Let me know if you want any help on the dataflow. I don't see a solution using beastmodes.
3
Answers
-
Unfortunately, you can't filter a card based on an agregate value. That means that if you want to filter out the combinations on Date and Collection Code that contain no Data entries, then you would need to first work that into a dataflow. Either ETL or MySQL, so that the card can then filter on it.
Let me know if you want any help on the dataflow. I don't see a solution using beastmodes.
3 -
I don't see how you can use filters in this scenario without impacting the count of distinct donation ID. I think you'll have to include those counts in your dataset as additional columns.
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'2 -
You could potentially highlight the dates when you have data entered if you change to a heatmap.
I'm not sure what your specifice use case is, but see if this would work for you:
2 -
'Filtering on aggregates' is a Feature switch that can be enabled by your CSM. It comes with the caveat that it is a beta feature that hasn't been fully developed and integrated into analyzer so some functionality around exports etc. won't work.
Because of the caveats, I personally don't use it often and instead try to build dataflows that allow me to avoid COUNT DISTINCT.
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
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