Agency Id

Identifier for the contracting agency associated with the IDV record. It is a coded value used to specify which federal agency issued or owns the IDV contract record.

Family: IDV
Category: Contract Identification
Data Type: identifier_or_code
Semantic Type: identifier
Mapping: flattened_fpds_xml_field
AI Confidence: high

Variable Overview

FPDS Query Variable
content__IDV__contractID__IDVID__agencyID
Title
Agency Id
FPDS Path
IDV/contractID/IDVID/agencyID
Description
Identifier for the contracting agency associated with the IDV record. It is a coded value used to specify which federal agency issued or owns the IDV contract record.
Business Meaning
This field allows analysts to group, filter, and attribute IDVs by agency for spend, competition, vendor, and award activity analysis. It is essential for comparing contracting behavior across departments and tracking agency-level procurement portfolios.
Example Value
4730
Observed Non-Null Count
5,862,557

FPDS Compare

FPDS Query Variable
content__IDV__contractID__IDVID__agencyID
FPDS XML Path
IDV/contractID/IDVID/agencyID
Mapping Type
flattened_fpds_xml_field
Comparison Summary
FPDS Query flattens the original nested FPDS XML path 'IDV/contractID/IDVID/agencyID' into the SQL-ready variable 'content__IDV__contractID__IDVID__agencyID'.

Use Cases

  • Dictionary lookup and field explanation
  • SQL filtering and grouping
  • Analytical reporting and reusable query building

Common Usage

  • Group IDVs by agency for portfolio analysis
  • Filter awards to a specific department or bureau
  • Join to agency reference tables or code mappings

Common Mistakes

  • Assuming the numeric value is a human-readable agency name
  • Using it without confirming whether the record represents issuing or related agency context

Query Guidance

Use this field in WHERE clauses for agency filtering and in GROUP BY for agency-level aggregation. When joining, match it to the corresponding agency code key in a reference table; do not compare it to text labels unless you first map the code to a description.

SQL Examples

Preview values

SELECT
    content__IDV__contractID__IDVID__agencyID AS agency_id
FROM fpds.data
WHERE content__IDV__contractID__IDVID__agencyID IS NOT NULL
LIMIT 25

Top values

SELECT
    content__IDV__contractID__IDVID__agencyID AS value,
    count() AS record_count
FROM fpds.data
WHERE content__IDV__contractID__IDVID__agencyID IS NOT NULL
GROUP BY value
ORDER BY record_count DESC
LIMIT 25

Each dictionary item includes SQL-ready examples generated alongside the variable metadata, allowing immediate use in FPDS Query for filtering, aggregation, and analysis.