Recalculate the transformation of the dataflow based on the specific time range selected in the card
Hi everyone!
I am trying to create a card to show the number of active customers. Active customers are those whose the sum of revenue and the sum of quantity are more than 0.
Practically, it means to exclude those customers whose the sum of revenue and the sum of quantity are less than or equal than zero.
The reason behind that logic is that a customer could make an order and then return it some days later. Since in the data Source both those transactions are recorded, there will be a date in which the revenue and the quantity are positive, and a later date in which the same amount of revenue and quantity will be negative, leading to 0 the sum of those two metrics, for that specific customer.
At this purpose, I'm using a dataflow; I've created a list of those customers whose respect the above conditions in all their lifetime. Unfortunately, this approach does not fully answer to the request, because we would want to exclude the inactive customers within the selected period in the card.
Let me make an example: if a customer orders a product on the 28th of September and returns it on the 3rd of October, selecting as a date range in the card the only month of September, this customer should be considered active (because he has not done the return yet).
For the same reason, if the users selects in the card September + October in the date range, the same customer should be considered inactive, because the sum of revenue and quantity would be 0.
In other words, we should find a way to recalculate the transformation of the dataflow based on the specific time range selected in the final card.
Do you have any suggestion to do this?
Many Thanks!
Roberto
Comments
-
Hi Roberto.
It sounds like you are almost there. My understanding is that you have built the flow already but I am not sure if you have built a card and tested the result. Can you confirm? If you have and you are having this issue then I would reach out directly to Support and ask for them to review this dataflow and offer their suggestions. Once they have their eyes on this the solution may come to light quickly.
I hope this link helps you with the support portal;
https://knowledge.domo.com/Welcome/Getting_Started/Understanding_the_Customer_Support_Portal
Jarvis
1 -
Hi Jarvis,
thanks for your reply.
I've created the card but it does not work as I expect. Since I've pre-filtered in the dataflow those customers whose the sum of revenue and quantity is > 0, I'm excluding them, independently from the time frame selected in the card.
What I would want to have is to consider active/inactive a customer depending on the date range selected in the card. In my previous example, thus, If I select in the card the period Jan-Sep I would want to see that customer active; on the contrary, selecting in card the period Jan-Oct I would want to see that customer inactive.Thanks,
Roberto0
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