Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create calculated tables in Excel 2016 Data Model

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.)

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.

like image 728
JMKõ Avatar asked Dec 08 '25 17:12

JMKõ


2 Answers

As of now (August 2019), Excel does not support generation of calculated tables using DAX. I personally believe Microsoft should consider this, given that DAX is efficient in data aggregation and analysis.

Get and Transform

Until having the feature implemented by Microsoft, there is a good alternative within Excel (versions from 2010 onward) by utilizing Get and Transform (called also PowerQuery in older versions).

Using this tool, you will be able to load the same data set (table or other data source) and transform it as a separate table into the data model.

Advantages:

  • It is powerful in terms of source data conversion, which extends beyond simple filtering and can deal with importing raw data extracts.

I personally used this approach, and has saved me tremendous time.

Disadvantage:

  • Get and Transform is a slower and indirect solution compared to DAX.
  • You need to refresh the query sources, whenever there is change of the source data.

Where is it located

  • In Excel 2016, to Get and Transform Tool is available Data/New Query.

Please let me know if you need any further explanation to my answer.

like image 126
Sharif Al Humaid Avatar answered Dec 11 '25 20:12

Sharif Al Humaid


Yes, it is possible to add DAX tables to data model in Excel.

enter image description here

  • Use Existing Connection to get whatever table to Excel sheet.

enter image description here

Right click on a table and select Edit DAX. Then shape your DAX code after EVALUATE command.

enter image description here

Add this new DAX shaped table from Excel sheet to your data model.

like image 38
Przemyslaw Remin Avatar answered Dec 11 '25 20:12

Przemyslaw Remin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!