2

I've been using Gepsio to try and churn my way through standard SEC XBRL filings through their EDGAR system, and despite my numerous attempts to figure this out, it seems I'm at a loss.

When you extract the facts from any document, and you're interested in retrieving "revenues," per the specific US-GAAP standards, there might be as many as 200 facts with the revenues tag associated with it. While the ID of each one is unique, figuring out which ID equates to the particular type of revenue you want doesn't seem to be very straightforward. The Revenue I'm interested in getting is the same one that appears in the consolidated statement of operations--i.e. Net Revenue, and not some obscure other type of revenue in the document. However, XBRL viewers like Arelle get it right every time, and despite trolling through the source code of Arelle I can't figure out the logic they are using either.

Anyone who can throw me in the right direction to understanding this would be greatly appreciated.

4

1 回答 1

4

你需要找到具有正确概念、时期和实体的事实。

  • 找到这个概念并不像听起来那么简单。虽然理论上应该如此us-gaap:Revenues,但许多申报者不使用该概念,或者“滥用”另一个美国公认会计原则概念,或者(在最坏的情况下)在自己的命名空间中构建自己的概念。Charles Hoffman 花了相当多的时间对此进行投资,并设计了报告框架来解决这个问题并允许在申报者之间进行比较。报告框架包括映射,例如这个你可以看到有不少于 77 个不同的概念(us-gaap:Revenuesus-gaap:SalesRevenueNet, ...) 用于报告收入。Charlie 的方法是选择列表中的第一个报告。对于某些概念(我认为收入不会发生这种情况),事实甚至可能没有得到明确报告,因此需要进行计算。一些 XBRL 供应商与 Charlie 合作,并在他们的产品中集成了此报告框架功能。

  • 实体是最简单的,因为在绝大多数情况下(它甚至可能是强制性的,但我找不到这方面的说明),文件中的所有事实都共享同一个实体。对于 SEC 文件,它是公司的 CIK(使用 CIK 计划)。话虽如此,在 SEC 文件中,还有一个额外的维度 ( dei:LegalEntityAxis),您必须检查它是否不存在或设置为其默认值以过滤掉任何子公司。

  • 这个时期有点复杂。为此,您需要找到另一个报告的事实,该事实dei:DocumentPeriodEndDate为您提供报告结束的期间,即资产负债表日期。使用此日期,您可以过滤候选事实并选择在该日期结束且持续时间为一年或一个或几个季度的事实。

  • 也可以针对特定场景或分支机构报告收入。在这种情况下,只需过滤掉具有更多维度的事实。

通常,如果您根据以上所有内容(概念、实体、周期、额外维度)过滤事实,您应该只剩下一个,因为冲突非常罕见并且经常是错误的。

另一种寻找概念的不同方法是查看每个文件中的网络,以编程方式找到您提到的合并操作的声明,但这也不是微不足道的,因为标签可能会有所不同。然后您可能能够推断收入概念,并且(不存在)定义网络将确保维度(如果有)是正确的。这可能是阿雷尔发现它的方式。

于 2017-06-06T06:58:15.677 回答