is this the table u want? SELECT ** FROM tort-intake-professionals.Financial_Log_Dataset.pctid_with_lr_casetype_and_leadspedia_contract_data LIMIT 1000
@James Scott, send us schema here or link to see that table...
@Ryan what more needs to be added to this.
This is most of it, but we need to JOIN to the iolrcasetyperevenuerates and iolrstatusrevenuerates tables in BigQuery so we can add the AND clause to check the billable active flag where we join on the LR CaseType IDs from this PCTID table.
Check with James Turner that the data values in the iolrstatusrevenuerates is ready, the casetypes is in production with Malissa Phillips keeping it accurate for prices, effective dates, etc...
So when Leadspedia Sold Leads is JOINED to this TIP side where the pctid.status is "billable" from the rev_rates tables, then we have our Shield Legal financials GOLD!