在Excel 2016数据模型中创建计算表 [英] Create calculated tables in Excel 2016 Data Model
问题描述
我在Excel 2016数据模型中有多个表.这些表来自其他excel工作表中维护的数据,并通过Excel Query导入以填充数据模型,以利用可用的高级数据管理功能(例如DAX,日期表,关系联接等)
I have multiple tables in Excel 2016 data model. These tables come from data maintained in other excel worksheets and are imported through Excel Query to populate a data model to take advantage of superior data management features that are available (e.g., DAX, date tables, relational joins, etc.)
但是,我希望能够通过应用过滤器,联合等来定位和转换现有数据元素来创建计算表"(带有DAX表达式).将数据模型中的计算表"用于数据透视表等的目标.在Excel 2016中是否可能?如果不是,那么需要哪些补充工具(除SQL之外)? TIA.
However, I would like to be able to create "calculated tables" (with DAX expressions) by applying filters, unions, etc. to target and transform the existing data elements. The goal to use the "calculated tables" in the Data Model for pivot tables, etc. Is this possible within Excel 2016? If not, what complementary tools (apart from SQL) are necessary? TIA.
推荐答案
我不这么认为.
在这里(尽管我注意到这篇文章是旧的):
Here (Though i note the article is old):
不幸的是,计算表在Excel 2016中不可用.如果 您需要使用Excel 2016的类似解决方案,可以依靠链接 后备表格(即,对在Excel中实现的数据模型的查询 表格,然后再加载回模型中).唯一的限制是 链接表的大小不能超过1M的物理限制 Excel行,而DAX计算表的大小和大小没有限制 可以在更多场景下工作,从而产生非常优雅和整洁的效果 模型.
Unfortunately, calculated tables are not available in Excel 2016. If you need a similar solution with Excel 2016, you can rely on linked back tables (i.e. queries over the data model materialized in Excel tables and then loaded back in the model). The only limitation is that the size of linked back tables cannot exceed the physical limit of 1M rows of Excel, whereas DAX calculated tables have no limit in size and can work in many more scenarios, resulting in a very elegant and neat model.
我认为这特别适用于Power BI,特别是使用新表"功能和SSAS表格使用新的计算表:
I think it is for Power BI particularly using the "New Table" feature and SSAS tabular using new calculated table:
仅在Power BI Desktop中可用,而在任何Excel中均不可用 版本或SSAS表格.此功能本质上是已计算 表"功能.您可以通过任何可返回以下内容的有效DAX度量: 值表,该表将物化并加载到 数据模型.
This is only available in Power BI Desktop and not in any of the Excel versions or SSAS Tabular. This feature is essentially a "Calculated Table" function. You can pass any valid DAX measure that returns a table of values, and the table will be materialised and loaded into the data model.