Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation Group that causes measure data types to decay to Variant is not picked up by Tabular Editor 3 #111

Closed
atmisra opened this issue Jun 29, 2021 · 2 comments
Labels
issue: bug Confirmed as a bug in TE3
Milestone

Comments

@atmisra
Copy link

atmisra commented Jun 29, 2021

For the same action of adding a calculated table and saving the changes back to the database, Tabular Editor 2 displays an error that is not shown in Tabular Editor 3 (same model and action).
Model is in Power BI premium, accessed with XMLA read/write. Actual error encountered related to a variant data type, resulting from a measure fed by a calculation group.

tabular editor issue

@otykier otykier added the issue: bug Confirmed as a bug in TE3 label Jun 30, 2021
@otykier
Copy link
Collaborator

otykier commented Jun 30, 2021

Thanks for reporting. Tabular Editor currently doesn't detect the measure data type decay, which may sometimes happen when a calculation group is added to the model (depending on the complexity of the calculation item logic). Thus, Tabular Editor "thinks" that all measures have well-defined data types (Int, String, Double, etc.), where in reality Analysis Services would decay all measures to the Variant data type. This prevents the measure from being used in an expression that turns into a column (since columns can not have the Variant data type). You can use the DAX CONVERT function to convert the measure to a specific data type before using it in a column expression.

I will look into having Tabular Editor 3 detect the data type decay based on calculation item formulas, but it's not a trivial task and other issues have higher priority currently.

@otykier otykier changed the title TOM Explorer in TabularEditor3 does not display calculated table error that displays in TabularEditor2. Calculation Group that causes measure data types to decay to Variant is not picked up by Tabular Editor 3 Jun 30, 2021
@otykier otykier added this to the 3.0.8 milestone Jul 7, 2021
@otykier
Copy link
Collaborator

otykier commented Aug 6, 2021

Fixed in 3.0.8. Thanks for reporting!

@otykier otykier closed this as completed Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Confirmed as a bug in TE3
Development

No branches or pull requests

2 participants