简体   繁体   English

从 XBRL 文档中获取特定值

[英]Get specific value from XBRL document

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.我一直在使用Gepsio尝试通过他们的 EDGAR 系统浏览标准的 SEC XBRL 文件,尽管我多次尝试解决这个问题,但我似乎不知所措。

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.当您从任何文档中提取事实,并且您对检索“收入”感兴趣时,根据特定的 US-GAAP 标准,可能有多达 200 个事实与收入标签相关联。 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.尽管每个 ID 的 ID 都是唯一的,但要弄清楚哪个 ID 与您想要的特定收入类型相同似乎并不容易。 The Revenue I'm interested in getting is the same one that appears in the consolidated statement of operations--ie 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.然而,像Arelle这样的 XBRL 查看器每次都能得到正确的结果,尽管浏览了 Arelle 的源代码,但我也无法弄清楚他们使用的逻辑。

Anyone who can throw me in the right direction to understanding this would be greatly appreciated.任何可以让我朝着正确方向理解这一点的人都将不胜感激。

You need to find the fact that has the right concept, period and entity.您需要找到具有正确概念、时期和实体的事实。

  • Finding the concept is not as trivial as it sounds.找到这个概念并不像听起来那么简单。 While in theory it should be us-gaap:Revenues , many filers do not use that concept and either "abuse" another US GAAP concept or (in the worst case) make up their own concept in their own namespace.虽然理论上它应该是us-gaap:Revenues ,但许多申报者不使用这个概念,要么“滥用”另一个美国公认会计准则概念,要么(在最坏的情况下)在他们自己的命名空间中组成他们自己的概念。 Charles Hoffman has spent considerable time investing this and designed report frames to solve this issue and allow comparison across filers. Charles Hoffman 花费了大量时间对此进行了投资,并设计了报告框架来解决此问题并允许跨文件管理器进行比较。 Report frames include mappings, such as this one where you can see that there are no less than 77 different concepts ( us-gaap:Revenues , us-gaap:SalesRevenueNet , ...) used to report revenues.报告帧包括映射,如这一个在这里你可以看到有不下77个不同的概念( us-gaap:Revenuesus-gaap:SalesRevenueNet ,...),用于报告的收入。 Charlie's approach is to pick the first one in the list that gets reported. Charlie 的方法是选择列表中第一个被报告的。 For some concepts (I think it doesn't happen with revenues), facts may not even get explicitly reported, so that calculations are needed.对于某些概念(我认为它不会发生在收入中),甚至可能不会明确报告事实,因此需要进行计算。 Some XBRL vendors have worked with Charlie and integrated this report frame feature in their products.一些 XBRL 供应商已与 Charlie 合作并将此报告框架功能集成到他们的产品中。

  • The entity is the easiest, because in the vast majority of the cases (it may even be mandatory, but I couldn't find instructions on this), all facts within a filing share the same entity.实体是最简单的,因为在绝大多数情况下(它甚至可能是强制性的,但我找不到关于此的说明),文件中的所有事实共享同一个实体。 For SEC filings, it is the CIK of the company (with the CIK scheme).对于 SEC 文件,它是公司的 CIK(使用 CIK 方案)。 Having said that, in SEC filings, there is an additional dimension ( dei:LegalEntityAxis ) that you must check is absent or set to its default value to filter out any subsidiaries.话虽如此,在 SEC 文件中,您必须检查一个额外的维度 ( dei:LegalEntityAxis ) 是否不存在或设置为其默认值以过滤掉任何子公司。

  • The period is a bit more complicated.期间有点复杂。 For this, you need to find another fact reported on dei:DocumentPeriodEndDate that gives you the period on which the report ends, which is the balance sheet date.为此,您需要找到dei:DocumentPeriodEndDate上报告的另一个事实,该事实为您提供报告结束的期间,即资产负债表日期。 With this date, you can filter the candidate facts and pick the ones that end on that date, and that have one year, or one or several quarters of duration.使用此日期,您可以过滤候选事实并选择在该日期结束且持续时间为一年或一个或几个季度的事实。

  • Revenues may also be reported for specific scenarios or branches.还可以针对特定场景或分支报告收入。 In this case, simply filter out facts that have any further dimensions.在这种情况下,只需过滤掉具有任何进一步维度的事实。

Normally, if you filter facts based on all the above (concept, entity, period, extra dimensions), you should only have one left, because collisions are very rare and are often mistakes.通常情况下,如果您根据以上所有内容(概念、实体、句点、额外维度)过滤事实,您应该只剩下一个,因为冲突非常罕见并且经常是错误的。

Another, different approach for finding the concept is to look at the networks in each filing to programmatically find the statement of consolidated operations that you mention, but this is also not trivial as labels may vary.另一种查找概念的不同方法是查看每个文件中的网络,以编程方式查找您提到的合并操作的声明,但这也不是微不足道的,因为标签可能会有所不同。 Then you may be able to infer the revenues concept, and the (absence of) definition network will make sure the dimensions (if any) are right.然后您可以推断收入概念,并且(没有)定义网络将确保维度(如果有)是正确的。 This may be the way Arelle finds it.这可能是Arelle找到它的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM