Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 5.11 KB

beta-18_3.md

File metadata and controls

48 lines (29 loc) · 5.11 KB

Tabular Editor 3 BETA-18.3 Release Notes

Bugfixes in BETA-18.3:

  • Improved semantic analyzer performance on large models (regression in BETA-18.x)
  • Queuing a data refresh operation should no longer freeze the UI
  • Keyboard buttons (left/right arrows and F2 for rename) may now again be used to navigate the Tabular Explorer tree

Bugfixes in BETA-18.2:

  • The DAX parser now correctly recognizes object names containing double quotes (see issue #22).

New features in BETA-18.1:

  • Update Table Schema from Power Query sources (see below)

Bugfixes in BETA-18.1:

  • Tabular Editor will now remember skin settings between upgrades
  • Fixed a bug with lineage tags causing crashes when copying Calculated Tables or Calculation Group Tables
  • Fixed a false error on the COALESCE and COMBINEVALUES DAX functions
  • Included Microsoft.AnalysisServices.dll in the distribution, which should ensure that Tabular Editor can properly import/export VPAX files
  • Tabular Editor will now automatically reestablish connection to AS for data refresh purposes

Update Table Schema from Power Query sources

A new release of the Tabular Editor 3 beta is here. And I'm really excited about this one, for one particular reason:

For the first time ever, Tabular Editor can now detect schema changes on Power Query data sources and partitions. And not just for relational data sources, but for ANY Power Query expression that can be evaluated by your Analysis Services engine. "How on earth is that even possible?!?", you might be thinking. Well, pay close attention to that last sentence: "ANY Power Query expression that can be evaluated by your Analysis Services engine".

A little known fact about the Analysis Services engine is that it is actually a transactional system. This means that we can start a transaction against a database that is already deployed on Analysis Services, make some metadata changes, refresh some data, query some data and then finally roll back the transaction, leaving the database in the original state as if we didn't even touch it at all.

So, in order to detect schema changes for Power Query partitions, Tabular Editor 3 will now add a hidden, temporary table to the model, populate that table using the M-function Table.Schema on the source query that we want to detect the schema for. Then, that temporary table is refreshed on the server (using the credentials that are already present on the server to access the data source) - this refresh only takes a split second, thanks to query folding happening inside the M engine. Finally, Tabular Editor will query the table to read the schema, before rolling back the entire transaction. The result:

image

The only caveat is of course that Tabular Editor 3 has to be connected to an instance of Analysis Services, but it doesn't matter whether or not the model you're working with holds any data - as long as the credentials to the data sources are stored in AS (and AS can actually access the data source). This technique is particularly useful if you use Tabular Editor 3's workspace mode.

In addition to detecting column names and data types, Tabular Editor 3 will also let you update the Description property from the source (if present). On SQL Server sources, this would be the MS_Description extended property. If a column is renamed in the source, it will show up in the Apply Schema Changes dialog as a column import and a column remove. However, as shown in the GIF above, if you Ctrl+Right Click on these two schema changes, you can combine them as a single "rename source column" schema change. The advantage of this approach, is that Tabular Editor 3 will automatically fix up any DAX expressions that reference the renamed column.

Limitations in this release:

  • The schema compare option is only available for Power Query partitions while Tabular Editor is connected to an instance of Analysis Services
  • Schema compare while offline will only be available for Legacy (Provider) partitions, similar to Tabular Editor 2.X. However, this functionality is not included in BETA-18.1, as I am initially looking for feedback on schema compare for Power Query partitions. Both this feature and the Import Tables Wizard will be available in the next beta release.
  • This feature can be used on a Power BI Desktop model as well, but keep in mind that adding/modifying/deleting columns on a table is not among the supported modeling operations for External Tools. Also, be aware that Power BI Desktop may be caching metadata for certain types of data sources, so you may have to run a refresh within Power BI Desktop before Tabular Editor can pick up the schema changes.