Building an end-to-end data pipeline is rarely a straight line—today was all about transitioning into Tableau, catching data issues, and establishing the exact financial and ridership business logic for my two intended users: the CFO and the Operations Analyst.

Designing the Two Views

Before creating a single sheet in Tableau, I mapped out the core questions and user needs onto two distinct concept sketches:

  • The Executive (CFO) View: Focused exclusively on total revenue and ride volume loss attributed to adverse weather events over the past year, comparing casual rider versus member trends so the finance department can know what to expect when rain is forecasted.
  • The (Operations) Analyst View: Built to answer more in-depth questions—measuring rain thresholds where riders don't use the system, station resilience, commute-hour shifts, and temperature-precipitation combinations.

Roadblock 1: The April Surprise (Missing Data)

Right as I started data exploration in Tableau, a gap surfaced: April trip data was missing. There were no rides between April 1st and 30th.


After running a couple tests in Tableau, I went back to Alteryx to try and identify the source of the problem. Having confirmed that April data wasn't included in the Alteryx output, I checked the configuration of the Input tool, went back to the Citi Bike .csv files I had downloaded, and found the discrepancy. For some reason, the April files were named differently, and the pattern I had set (*-citibike-tripdata_*.csv) hadn't captured the difference:

Rather than panicking or letting a 30-day hole distort annual totals, I ran the workflow with the pattern corrected to capture the April files, and refreshed the Snowflake extract. Refreshing the data in Tableau showed the gap had been mended.

Establishing the Core Business Logic

With the data restored, I dove into the core financial and trip volume calculations within Tableau:

A. The Pricing & Revenue Model

Citi Bike’s NYC rate structure was translated into a row-level calculation:

  • Annual Members: Free unlimited classic rides up to 45 min; $0.27/min for e-bikes.
  • Casual Riders: $4.99 unlock fee + $0.41/min for e-bikes from minute 1, and $0.41/min for classic overage past 30 min.

B. Lost Trips & Lost Revenue Formulas

Because dry conditions occurred 87% of the year, raw annual sums would heavily distort weather impact:

  • % Trip Drop Wet Hours: To obtain this number, I calculated the baseline Avg Trips per Dry Hour against Avg Trips per Wet Hour , to establish the true percentage demand drop during precipitation.
  • Bad Weather Revenue Loss: For this, I took the average revenue generated during an average dry hour, projected what wet periods should have generated at full demand, and subtracted the actual revenue collected during rain/snow to isolate the revenue deficit attributed to precipitation.

C. The Real Trips per Hour LOD

Because the granularity of the fact table is station, rider type, and bike type, a native AVG(Trip Count) wrongly computed the average per station (~2–4 trips).
I implemented a Level of Detail expression to pre-aggregate ridership system-wide before averaging across weather categories:

Where Things Stand + What's Next

  1. Both concept sketches are done
  2. Executive View calculated fields have been created

Tomorrow will be dedicated to building out all the sheets in Tableau, and eventually assembling the final interactive views.