get_raw_data: Explicit DETAILED view omits certain reportable-segment revenue observations returned by the default view
get_raw_data: Explicit DETAILED view omits certain reportable-segment revenue observations returned by the default view
Issue Type
- [x] Data Quality Issue (incorrect financial values, missing data)
- [ ] XBRL Parsing Issue (statement rendering, concept mapping)
- [ ] Filing Access Issue (download failures, attachment problems)
- [ ] Performance Issue (slow operations, memory problems)
- [ ] Compatibility Issue (platform/dependency conflicts)
- [ ] Documentation Issue (unclear instructions, missing examples)
Environment
EdgarTools Version: 5.58.0, freshly built and installed from commit e23d04eba952e70310c0f62402f4c2523f9a44bf into a new virtual environment, with its declared dependencies installed. Also reproduced in the original installed 5.56.0 environment.
Python Version: CPython 3.14.4, 64-bit, MSC v.1944 (AMD64).
Operating System: Windows 11, build 26200 (Windows-11-10.0.26200-SP0).
The 5.58.0 reproduction ran from outside both source checkouts. The imported module path was C:/dev/issue-reports/edgartools/.work/stable-runtime/Lib/site-packages/edgar/__init__.py, confirming it used the freshly installed target build.
The same result was then verified after upgrading the active commissioned runtime to 5.58.0 from the same commit, importing C:/dev/plicit/library/.venv/Lib/site-packages/edgar/__init__.py. The minimal code block below was extracted from this report and executed verbatim in that upgraded runtime.
Bug Description
What you expected to happen:
For the same public Notes child Statement, get_raw_data(view=StatementView.DETAILED) should retain the two reportable-segment revenue rows and their six annual values that are available from get_raw_data().
The public get_raw_data signature accepts StatementView, and the enum's public help describes DETAILED as including dimensional breakdowns with relaxed member filtering for complete extraction. The report uses the enum as its primary reproducer; it does not rely on whether the string form is supported by this method.
What actually happened:
The default call returns revenue for Compute & Networking and Graphics for FY2026, FY2025 and FY2024. Explicit StatementView.DETAILED returns no revenue observations with us-gaap:StatementBusinessSegmentsAxis. Other rows remain in the returned Statement. A subsequent default call returns the six values again.
Both reportable-segment rows carry a second dimension: srt:ConsolidationItemsAxis = us-gaap_OperatingSegmentsMember. These are distinct from product/end-market breakdowns.
| Call on the same Statement instance | 5.58.0, requested commit | Original installed 5.56.0 |
|---|---|---|
get_raw_data() before explicit views |
6 | 6 |
get_raw_data(view="detailed") |
0 | 0 |
get_raw_data(view=StatementView.DETAILED) |
0 | 0 |
get_raw_data() after explicit views |
6 | 6 |
Counts are numeric annual revenue observations on the reportable-business-segment axis, not total Statement row counts.
Error message (if any):
No exception or warning is raised. The omission is silent.
Reproduction
Company/Ticker: NVIDIA Corporation / NVDA, CIK 1045810.
Time Period: FY2026 ended January 25, 2026; FY2025 ended January 26, 2025; FY2024 ended January 28, 2024.
Relevant Forms: 10-K filed February 25, 2026, accession 0001045810-26-000021.
Minimal code to reproduce:
Set EDGAR_IDENTITY to a valid SEC contact identity before running.
import os
from edgar import get_by_accession_number, set_identity
from edgar.xbrl.presentation import StatementView
set_identity(os.environ["EDGAR_IDENTITY"])
filing = get_by_accession_number("0001045810-26-000021")
note = next(n for n in filing.obj().notes if n.title == "Segment Information")
statement = next(
child for child in note.children
if child.role_or_type.endswith(
"/SegmentInformationScheduleofRevenuebyMarketDetails"
)
)
def segment_revenue_count(rows):
return sum(
sum(isinstance(v, (int, float)) and not isinstance(v, bool)
for v in row.get("values", {}).values())
for row in rows
if row.get("concept") == "us-gaap_Revenues"
and any(d["dimension"] == "us-gaap:StatementBusinessSegmentsAxis"
for d in row.get("dimension_metadata", []))
)
print("default before:", segment_revenue_count(statement.get_raw_data()))
print("detailed enum:", segment_revenue_count(
statement.get_raw_data(view=StatementView.DETAILED)))
print("default after:", segment_revenue_count(statement.get_raw_data()))
Actual output on 5.58.0 at the specified commit:
default before: 6
detailed enum: 0
default after: 6
Expected: the detailed enum call retains all six observations.
Additional Context
The following amounts are returned by the default public Statement view and agree with the reportable-segment table in Note 16 of the filed annual report. USD millions:
| Reportable segment | FY2026 | FY2025 | FY2024 |
|---|---|---|---|
| Compute & Networking | 193,479 | 116,193 | 47,405 |
| Graphics | 22,459 | 14,304 | 13,517 |
The numeric values in the reproduction's raw output are USD, not millions. Exact duration keys are:
duration_2025-01-27_2026-01-25duration_2024-01-29_2025-01-26duration_2023-01-30_2024-01-28
The two business members are nvda_ComputeAndNetworkingSegmentMember and nvda_GraphicsSegmentMember. The selected role is http://www.nvidia.com/role/SegmentInformationScheduleofRevenuebyMarketDetails (child index 5 in the tested filing). The reproducer selects by role instead of depending on that index.
Practical impact: A consumer requesting detailed rows to gather all numeric business-segment measures can incorrectly conclude that segment revenue is unavailable, even while other segment measures are returned through other Statements. The evidence exists in the filing and in the default view; this is not a disclosure gap.
Scope of the report: Confirmed observable public-API difference for this filing and these versions. Internal cause is not established. No assertion is made that every possible Statement must contain all filing facts. The result also occurred with the explicit enum, ruling out string-versus-enum caller ambiguity in this reproduction.
Public documentation checked at the requested commit:
- Detailed dimensional views and accepted view forms
- Statement extraction and detail levels
- Bound public help for
Statement.get_raw_dataand publicStatementViewenum help in the installed target build. The documentation examples primarily coverto_dataframe; the enum annotation and reproduction establish the supportedget_raw_datacase directly.
This issue will be handled using EdgarTools' systematic issue resolution workflow. A reproduction test will be created to verify the fix.
This is a silent data-loss path for anyone pulling segment revenue out of 10-Ks. The NVDA accession 0001045810-26-000021 repro is clear: default get_raw_data() keeps the six us-gaap:StatementBusinessSegmentsAxis revenue observations, and StatementView.DETAILED drops them to zero with no warning.
The footer says the issue will go through the systematic workflow. If that is not already claimed internally, I can add a regression test against that accession and trace why DETAILED filters out the srt:ConsolidationItemsAxis members. OK to take?
Confirmed, and thank you for the precision — the accession, the role, and the exact duration keys made this a five-minute reproduction. I get 6, 0, 6 exactly as reported, on 5.58.0 source against live data.
Two things I can add.
Nothing is actually dropped; the rows are swapped. Both views return 16 rows. Comparing the us-gaap_Revenues rows:
DEFAULT "Operating Segments - Compute & Networking" [srt:ConsolidationItemsAxis, us-gaap:StatementBusinessSegmentsAxis]
"Operating Segments - Graphics" [srt:ConsolidationItemsAxis, us-gaap:StatementBusinessSegmentsAxis]
DETAILED both absent; instead carries "Compute" and "Networking", each [srt:ProductOrServiceAxis]
So the view documented as including all dimensional data is the one discarding the two-axis combinations, and it substitutes single-axis product rows. Worth noting that NVIDIA's segment name (Compute & Networking) and its product names (Compute, Networking) are nearly identical, which may well be implicated.
Where it is not. The renderer's view filter is innocent: on the DETAILED branch (edgar/xbrl/rendering.py:1619) it removes only structural elements, so that path is a strict superset of STANDARD and cannot remove these rows. _merge_complementary_rows is innocent too. Calling xbrl.get_statement(...) directly and counting before and after the merge:
DEFAULT get_statement rows=16 segrev=6 | after merge rows=16 segrev=6
DETAILED get_statement rows=16 segrev=0 | after merge rows=16 segrev=0
The facts are already gone when get_statement returns. The view is passed from XBRL.get_statement (edgar/xbrl/xbrl.py:1365) down into _generate_line_items(..., valid_dimensional_members, view, ...), alongside _get_valid_dimensional_members(tree). That is where I would start.
@Dxfory — not claimed, please go ahead, and thank you for asking first. The localisation above should save you the bisect. Two requests: put the regression test in tests/issues/regression/, and make it offline if you can (a cassette or a committed fixture) rather than hitting the network, since the network suite runs sequentially and rate-limited. Please also add a changelog.d/1331.fixed.md fragment rather than editing CHANGELOG.md, and Fixes #1331 in the PR body. Ping me if the fix turns out to need a behaviour decision rather than a straightforward correction.
Tracked internally as a P1, since this is silent and the default path being correct makes it easy to miss.