Count Distinct Customer Visits Without Showing Customers in Card

I am needing some help with a project I am working on where I need to report on how many customers visited in a given time frame.
Attached is sample/dummy data of the dataset I am trying to analyze.
Requirements:
1) Use Visit_Date as a filter (date range)
2) Report how many distinct Customer_ID visited during the filtered Visit_Date range
Expected output:
For 1/1/2020-1/10/2020
Visit_Count_Bucket Count_of_Customer_ID
1 2
2 1
3 1
5 1
Current Visit_Count_Bucket code that isn't working UNLESS I bring in Customer_ID into the card
Best Answer
-
@JeffDaySJP i hate to say it, but I don't think you're going to get this one across the line without pre-aggregating your data.
with the new Data Views beta, you'll be able to generate the aggregation in a VIEW, a la.
CREATE VIEW new_domo_dataset as
SELECT
count( distinct customer, date) as visit_count,
customer,
date
from table
GROUP BY
customer, date
AND then use new_domo_dataset as the input for a card.
ask your CSM about access to the data views beta.
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"1
Answers
-
@JeffDaySJP i hate to say it, but I don't think you're going to get this one across the line without pre-aggregating your data.
with the new Data Views beta, you'll be able to generate the aggregation in a VIEW, a la.
CREATE VIEW new_domo_dataset as
SELECT
count( distinct customer, date) as visit_count,
customer,
date
from table
GROUP BY
customer, date
AND then use new_domo_dataset as the input for a card.
ask your CSM about access to the data views beta.
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"1
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 655 Datasets
- 114 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 409 Distribute
- 120 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive