Need help getting pointed in the right direction for what might be causing inflating counts
I have a table that has details of inventory at each site that illustrates KPI's like Occupancy, vacancy, days vacant, and occupied units. It is put together using 3 different data sources.
- Price list - This is a majority of it. it is all the units aggregated row by row with those occupied, vacant, and total unit details.
- Web discount detail. This is just a list of web discount names that gets pulled in to the site and units they correlate with from the price list.
- vacant units - This is where it gets a little weird. this only shows all the units that our currently vacant. it includes details like days vacant and excl. online. it should match with what shows on the price list. it gets joined with the price list by making a key from combing columns site,size, and unit type, then also join on unittypeID and the price. all are shared between both reports.
For this example there seems to be something inflating some of the counts in the price list.
The price list is everything left starting from the 'Vac' column. everything to the right is from the vacant units report. All the stuff to the right is reflecting correctly with where it should compared to the price list. but if you you look at 2 of the 0x0 lockers they are getting doubled the one showing a total of 10 should show 5, and the first one showing a total of 4 should show 2. Everything else looks correct.
This dataflow does have a recursive aspect. the VΔ column is showing week over week activity at the unit level. I'm not sure maybe that is the culprit.
After checking and rechecking the vacant units piece that I thought was the culprit because the one unit available was being applied to all 4 0x0 lockers and somehow caused an inflation to the total and occ columns didn't fix it I am not sure what could be causing it.
Best Answer
-
Hey,
If I were to be going through this I would first look in the ETL and run a preview to see the output of each ETL tile (depending on the amount of data you have because it only shows a preview). You could spot duplicates or something looking off and know which tile needs to be edited.
I would also go to your data output of this ETL in the data center and look at the data, filter it down to a specific case where you saw an issue in the pivot. For example, the 0x0 locker that is showing 10 instead of the desired 5. This may help you spot the issue.
If you still cannot pinpoint the error, I would also look in the pivot table you have created and make sure in each value aggregation type you are taking a sum where you need or maybe you want to be taking the count instead. It is possible you may want to be filtering by a distinct count of an attribute as well, this is where a beast mode would come into play.
Another note: You did mention a recursive aspect to this ETL and typically, you want some logic in the ETL to make sure you are not counting duplicates. Hopefully this gives you some more ideas to help you troubleshoot and pinpoint the issue.
Best,
Nick
2
Answers
-
Hey,
If I were to be going through this I would first look in the ETL and run a preview to see the output of each ETL tile (depending on the amount of data you have because it only shows a preview). You could spot duplicates or something looking off and know which tile needs to be edited.
I would also go to your data output of this ETL in the data center and look at the data, filter it down to a specific case where you saw an issue in the pivot. For example, the 0x0 locker that is showing 10 instead of the desired 5. This may help you spot the issue.
If you still cannot pinpoint the error, I would also look in the pivot table you have created and make sure in each value aggregation type you are taking a sum where you need or maybe you want to be taking the count instead. It is possible you may want to be filtering by a distinct count of an attribute as well, this is where a beast mode would come into play.
Another note: You did mention a recursive aspect to this ETL and typically, you want some logic in the ETL to make sure you are not counting duplicates. Hopefully this gives you some more ideas to help you troubleshoot and pinpoint the issue.
Best,
Nick
2
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