BimpHelp

BigQuery table field reference

Updated 18 min read

On this page
In short

Bimp data in BigQuery is available as views of the bimp_public dataset: directories (v_dim_*), facts (v_fact_*), cash views and calculated monthly balances. This reference describes every field of every view. Fields with the _guid suffix link tables, company_id is in every table, and exported_at, created_at, updated_at are technical dates, not business dates.

General rules for working with views

All Bimp data is available as views in the “bimp_public” dataset of the “Bimpsoft” project. The view and field names in this reference match those you see and use in queries, Looker Studio and Power BI. For connection, see BigQuery and Looker Studio and Power BI.

RuleWhat it means
Fields with the _guid suffixA unique identifier for linking to the corresponding directory. For example, “item_guid” links a fact to “v_dim_nomenclature”
“company_id”Present in every table; the company identifier (for companies with several databases or branches)
“exported_at”, “created_at”, “updated_at”Technical dates of export or record change, not a business date. For reports use “document_date” or “movement_date”
End-of-month balancesThe “opening_” columns are values at the start of the month, “closing_” at the end. The current month is not filled in the calculated views because it is not finished
BatchesProduct balances are kept by batches. If the company does not track batches, “batch_guid” is empty in all rows. If it does, aggregate by batches when you do not need the batch
Two currenciesIn the cash views, “amount” and “_balance” are in the company’s base currency, and “_currency” is in the currency of the account or cash desk. Do not mix them in one sum
PricesUpdated once a day, the rest of the data more often. If a report shows an “old” price, first check “exported_at”

Which views are available

The “bimp_public” dataset contains directories (dimension), facts (fact), cash views and calculated views.

ViewWhat it containsGroup
v_dim_nomenclatureProducts and services: goods, services, variantsDirectory
v_dim_counterpartiesCounterparties: customers, suppliersDirectory
v_dim_employeesEmployeesDirectory
v_dim_business_linesLines of businessDirectory
v_dim_nomenclature_groupsProduct groupsDirectory
v_dim_projectsProjectsDirectory
v_dim_warehousesWarehousesDirectory
v_dim_organizationsOrganizations (the company’s legal entities)Directory
v_dim_financial_itemsIncome and expense itemsDirectory
v_dim_equipmentEquipment (customers’ equipment)Directory
v_dim_equipment_groupsEquipment groupsDirectory
v_cash_accountsAccounts and cash desksDirectory
v_customer_pricePrice lists for customersDirectory
v_fact_salesSalesFact
v_fact_ordersOrders (invoices)Fact
v_fact_income_expensesIncome and expensesFact
v_fact_repairsRepairsFact
v_fact_additional_costsAdditional costs for salesFact
v_fact_service_costsCost price of servicesFact
v_fact_stock_movementsProduct movements by warehouseFact
v_cash_movementsCash movementsFact
v_customer_pricesPrices for customersFact
v_dim_monthly_stock_balancesMonthly warehouse balancesCalculated
v_monthly_cash_balancesMonthly cash balancesCalculated

v_dim_nomenclature: products and services

The “v_dim_nomenclature” view contains goods, services and their variants (characteristics). It is this view’s “item_guid” that is used in the fact views.

FieldDescription
company_idCompany
item_guidUnique identifier of a product or service (used in the fact views)
product_guidIdentifier of the base product (if the row is a variant or characteristic)
variant_guidIdentifier of the product variant (characteristic)
product_nameName of the base product
variant_nameName of the variant or characteristic
full_nameFull name (product + variant)
is_variantThis is a variant (characteristic), not a main product
articleItem code
group_guidProduct group (link to v_dim_nomenclature_groups)
unit_nameUnit of measure
is_serviceService (not a physical product)
is_archivedArchived (inactive) product
is_kitKit (a set of several products)
barcodeBarcode
weight, length, width, height, volumeWeight, length, width, height, volume
country_of_originCountry of origin
descriptionProduct description
min_stock_levelMinimum stock level in the warehouse
is_batches_trackedBatches are tracked
is_serial_trackedSerial numbers are tracked
created_at, updated_atDate the record was created and last changed

v_dim_counterparties: counterparties

The “v_dim_counterparties” view contains customers and suppliers. The key is “contractor_guid”.

FieldDescription
contractor_guidUnique identifier of the counterparty
company_idCompany
statusCounterparty status
nameFull name
print_nameName for printing in documents
priorityCounterparty priority
parent_contractor_guidParent counterparty (if part of a group or holding)
owner_namePerson responsible for the counterparty
email, phoneContact details
lead_sourceSource the customer came from
is_customerIs a customer
is_supplierIs a supplier
is_individualIndividual (not a company)
country, regionCountry, region
tax_idTax ID (taxpayer number)
reg_codeEDRPOU (company registration code)
author_nameWho created the record
manager_nameManager responsible for the counterparty
is_archivedArchived (inactive) counterparty
created_at, updated_atDate created and last changed
commentComment on the counterparty
contact_nameName of the counterparty’s main contact

v_dim_employees: employees

FieldDescription
employee_guidUnique identifier of the employee
company_idCompany
nameFull name
positionPosition
status_nameStatus (employed / dismissed)
hire_dateHire date
dismissal_dateDismissal date
commentComment
is_archivedArchived record
created_at, updated_atDate created and last changed

v_dim_business_lines: lines of business

FieldDescription
business_line_guidUnique identifier of the line of business
company_idCompany
nameName of the line of business
commentComment
is_archivedArchived line of business
is_mainMain line of business
parent_business_line_guidParent line of business (if there is a hierarchy)
warehouse_guidLinked warehouse
created_at, updated_atDate created and last changed

v_dim_nomenclature_groups: product groups

FieldDescription
nomenclature_group_guidUnique identifier of the group
company_idCompany
nameGroup name
commentComment
is_archivedArchived group
parent_nomenclature_group_guidParent group (hierarchy of product groups)
created_at, updated_atDate created and last changed

v_dim_projects: projects

FieldDescription
project_guidUnique identifier of the project
company_idCompany
nameProject name
commentComment
is_archivedArchived project
manager_nameProject manager
parent_project_guidParent project (hierarchy)
created_at, updated_atDate created and last changed

v_dim_warehouses: warehouses

FieldDescription
warehouse_guidUnique identifier of the warehouse
company_idCompany
nameWarehouse name
is_mainMain warehouse
is_archivedArchived warehouse
is_publicPublic warehouse (available to everyone)
is_activeActive warehouse
is_groupWarehouse group (not a physical warehouse, but a grouping)
warehouse_kindWarehouse type
commentComment
addressAddress
is_counterparty_warehouseCounterparty’s warehouse (for example, consignment)
parent_warehouse_guidParent warehouse (hierarchy)
created_at, updated_atDate created and last changed

v_dim_organizations: organizations

The view contains the company’s legal entities.

FieldDescription
organization_guidUnique identifier of the organization
company_idCompany
nameOrganization name
legal_nameLegal name
inn_codeTax ID
edrpou_codeEDRPOU (company registration code)
legal_addressLegal address
director_nameDirector
phone_numberPhone
organization_typeOrganization type
is_mainMain organization
is_vat_payerVAT payer
is_archivedArchived organization
created_at, updated_atDate created and last changed

v_dim_financial_items: income and expense items

FieldDescription
financial_item_guidUnique identifier of the item
company_idCompany
item_typeItem type (income / expense)
nameItem name
group_nameName of the item group
parent_guidParent item (hierarchy)
rgk_itemLinked cash flow statement item, if applicable
activity_kind_nameKind of activity (operating / investing / financing)
is_archivedArchived item
exported_atDate the record was exported

v_dim_equipment: equipment

The view contains customers’ equipment.

FieldDescription
equipment_guidUnique identifier of the equipment unit
company_idCompany
nameEquipment name
is_archivedArchived record
created_at, updated_atDate created and last changed
equipment_group_guidEquipment group (link to v_dim_equipment_groups)
modelModel
serial_numberSerial number
manufacture_yearYear of manufacture
counterparty_guidEquipment owner (counterparty)
equipment_kindKind of equipment
commentComment
acceptance_dateDate of acceptance for accounting
warranty_monthsWarranty period, months

v_dim_equipment_groups: equipment groups

FieldDescription
equipment_group_guidUnique identifier of the equipment group
company_idCompany
nameGroup name
parent_group_guidParent group (hierarchy)
is_archivedArchived group
created_at, updated_atDate created and last changed

v_cash_accounts: accounts and cash desks

The view contains the organizations’ own bank accounts and the company’s cash desks. Counterparties’ accounts are not included.

FieldDescription
account_guidAccount or cash desk
company_idCompany
account_kindbank_account (bank account) or cash_desk (cash desk)
nameName
codeCode in the directory
currency_guidCurrency
currency_codeCurrency code per ISO 4217
bank_nameBank (accounts only)
account_numberAccount number
mfoBank MFO code
is_mainMain account or cash desk
is_archivedArchived
is_deletedMarked for deletion
commentComment
exported_atDate the record was exported

v_customer_price: price lists for customers

The “v_customer_price” view is a directory of price lists. The prices themselves are in “v_customer_prices”.

FieldDescription
price_list_guidUnique identifier of the price list
company_idCompany
namePrice list name
commentComment
is_mainMain price list
is_archivedArchived price list
currency_codePrice list currency code per ISO 4217

v_fact_sales: sales

The “v_fact_sales” view contains the rows of sales of goods and services. One row corresponds to one item of a sales document.

FieldDescription
sale_idUnique identifier of the sales row
company_idCompany
movement_dateDate and time of the sale
item_guidProduct or service
batch_guidProduct batch
batch_nameBatch name
organization_guidSelling organization
counterparty_guidCustomer
contract_guidContract
order_guidLinked order (invoice)
business_line_guidLine of business
project_guidProject
warehouse_guidWarehouse the sale was made from
responsible_employee_guidResponsible employee
quantityQuantity
amount_baseSales amount in base currency, including VAT
amount_without_vat_baseAmount without VAT, in base currency
vat_amount_baseVAT amount, in base currency
amount_currencyAmount in the document currency
document_currency_codeDocument currency code
goods_cost_amountCost price of the goods sold
operation_typeSales operation type
sales_document_guidBase document for the sale
document_typeSales document type
document_numberSales document number
document_dateSales document date
order_numberOrder (invoice) number
order_dateOrder (invoice) date
order_typeOrder document type
contract_numberContract number
contract_nameContract name
exported_atDate the record was exported

v_fact_orders: customer orders

The “v_fact_orders” view contains orders (invoices) by rows.

FieldDescription
row_idUnique identifier of the order row (order + row number)
order_guidIdentifier of the order (document)
company_idCompany
order_dateOrder date
order_numberOrder number
organization_guidSelling organization
counterparty_guidCustomer
project_guidProject
business_line_guidLine of business
commentOrder comment
responsible_employee_guidResponsible employee
warehouse_guidShipping warehouse
planned_shipment_datePlanned shipment date
status_nameOrder status
contract_nameContract name
contract_numberContract number
line_numberRow number in the order
item_guidProduct or service in the order row
quantityQuantity
amount_without_vatRow amount without VAT
vat_amountRow VAT amount
amount_with_vatRow amount including VAT
discount_amountDiscount amount
exported_atDate the record was exported

v_fact_income_expenses: income and expenses

FieldDescription
movement_idUnique identifier of the cash movement or item
company_idCompany
movement_dateOperation date
document_guidBase document
document_typeDocument type
document_dateDocument date
document_numberDocument number
business_line_guidLine of business
project_guidProject
financial_item_guidIncome or expense item
counterparty_guidCounterparty
organization_guidOrganization
income_amountIncome amount
expense_amountExpense amount
exported_atDate the record was exported

v_fact_repairs: repairs

FieldDescription
movement_idUnique identifier of the record
company_idCompany
movement_dateOperation date (handover or acceptance)
document_guid“Acceptance and handover for repair” document
document_numberDocument number
counterparty_guidCustomer
warehouse_guidWarehouse
project_guidProject
business_line_guidLine of business
responsible_guidResponsible employee
reason_for_serviceReason for the request or description of the fault
acceptance_dateDate the equipment was accepted for repair
completion_dateRepair completion date
return_dateDate the equipment was returned to the customer
item_guidProduct, spare part or service related to the repair
quantityQuantity
order_guidLinked order
order_dateOrder date
order_numberOrder number
order_typeOrder document type
exported_atDate the record was exported

v_fact_additional_costs: additional costs for sales

FieldDescription
company_idCompany
document_guidAdditional costs document
item_guidProduct the cost is allocated to
batch_guidProduct batch
sales_document_guidSales document the cost is attributed to
movement_dateOperation date
cost_amountAdditional cost amount
exported_atDate the record was exported

v_fact_service_costs: cost price of services

FieldDescription
company_idCompany
document_guidBase document
item_guidService or product
order_guidLinked order
movement_dateOperation date
cost_amountCost price amount
exported_atDate the record was exported

v_fact_stock_movements: product movements by warehouse

FieldDescription
company_idCompany
movement_idUnique identifier of the movement
document_guidBase document of the movement
document_typeDocument type
document_numberDocument number
document_dateDocument date
movement_dateDate and time of the product movement
warehouse_guidWarehouse
item_guidProduct
batch_guidProduct batch
batch_nameBatch name
quantityMovement quantity
amountMovement amount
signMovement direction: receipt or write-off (+1 / −1)
exported_atDate the record was exported

v_cash_movements: cash movements

The “v_cash_movements” view covers receipts and expenses on accounts and cash desks: payments, transfers between accounts and cash desks, receipt and repayment of loans and investments.

FieldDescription
company_idCompany
movement_idRow key: document_guid:row number
document_guidBase document
document_typeDocument type
document_numberDocument number
document_dateDocument date
movement_dateMovement date
account_guidAccount or cash desk
account_kindbank_account or cash_desk
cash_type_guidCash type
cash_type_nameCash type name
currency_guidCurrency
currency_codeCurrency code per ISO 4217
amountAmount in base currency
amount_currencyAmount in the currency of the account or cash desk
signMovement direction: receipt or expense (+1 / −1)
commentPayment purpose
exported_atDate the record was exported

v_customer_prices: prices for customers

The “v_customer_prices” view contains the current prices of products for each price list. It is a snapshot of current prices, not a history of changes: for each “product + price list” pair there is exactly one row with the latest price. The view is updated once a day at 02:00, so a price changed during the day appears the next night.

FieldDescription
company_idCompany
item_guidProduct (for products with characteristics, the specific characteristic)
price_list_guidPrice list (link to v_customer_price)
pricePrice
currency_codeCurrency code per ISO 4217; taken from the price list
price_dateDate from which this price applies
exported_atMoment the snapshot was taken, the same for all rows of one update

v_dim_monthly_stock_balances: monthly warehouse balances

Calculated views are not exported from the accounting system directly: the rows are calculated by accumulating movements. The “v_dim_monthly_stock_balances” view shows product balances by warehouse at the start and end of each completed month.

FieldDescription
company_idCompany
warehouse_guidWarehouse
item_guidProduct
batch_guidProduct batch (empty if the company does not track batches)
month_startFirst day of the month the row belongs to
net_quantityNet movement of product quantity for the month
opening_balanceQuantity balance at the start of the month
closing_balanceQuantity balance at the end of the month
net_amountNet movement of value for the month
opening_amountValue of the balance at the start of the month
closing_amountValue of the balance at the end of the month
average_costCost price of a unit of the balance: closing_amount / closing_balance
calculated_atDate the record was calculated

v_monthly_cash_balances: monthly cash balances

The “v_monthly_cash_balances” view shows turnovers and balances for each account or cash desk at the start and end of a completed month, in the base currency and in the account currency.

FieldDescription
company_idCompany
account_guidAccount or cash desk
account_kindbank_account or cash_desk
currency_codeCurrency code per ISO 4217
month_startFirst day of the month the row belongs to
net_amountTurnover for the month in base currency
opening_balanceBalance at the start of the month
closing_balanceBalance at the end of the month
net_amount_currencyTurnover for the month in the account currency
opening_balance_currencyBalance at the start of the month in the account currency
closing_balance_currencyBalance at the end of the month in the account currency
calculated_atDate the record was calculated

Which views are not described in the reference

Two views in the dataset have no field descriptions.

ViewNote
v_fact_sales_enrichedA derived view on top of sales; the set of fields depends on its definition
test_whoamiService view for checking access; contains no business data

FAQ

How do I link BigQuery tables to each other?

Through fields with the _guid suffix. For example, item_guid in v_fact_sales corresponds to item_guid in v_dim_nomenclature, and counterparty_guid corresponds to contractor_guid in v_dim_counterparties.

Why do the balance tables not include the current month?

Balances are calculated as of the end of the month, and the current month is not finished yet, so it is not filled in the calculated views.

Why is batch_guid empty?

If the company does not track batches, batch_guid is empty in all rows, which is normal. If it does, aggregate by batches when the batch is not needed in the report.

Why is the price in my report out of date?

Prices in v_customer_prices are updated once a day at 02:00, so a price changed during the day appears the next night. Check the exported_at field.

Why is average_cost empty?

In v_dim_monthly_stock_balances, average_cost is empty when closing_balance is zero: there is nothing to divide by. Filter by closing_balance != 0, not by average_cost IS NOT NULL.

Was this article helpful?

Read next

Didn't find the answer?Write to us — support replies during business hours.