How to add a column to AAS table, in this situation?

Mark Mace 71 Reputation points
2022-10-28T18:16:31.123+00:00

We have an AAS cube that - appears to be, based on underlying Views in the Azure SQL Database

I can add a column to a View fine in SQL, but I'm unsure how to promote that column to the AAS Cube.

Is there any sort of documentation? I'd love to do it in Tabular Editor 2 even...but I don't know if that's possible. This seems unusually difficult to google.

There is this page, but say when it says
https://learn.microsoft.com/en-us/analysis-services/tabular-models/add-columns-to-a-table-ssas-tabular?view=asallproducts-allversions

"In the Power, click on the table you want to add a column to" - not really following. It doesn't seem to be specific to AAS either.

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
457 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Nandan Hegde 32,416 Reputation points MVP
    2022-11-01T05:14:05.607+00:00

    Hey,
    Login to the AAS server via SSMS

    expand the TBM to tables and right click on the table wherein you want to add the column and click on partition

    255893-image.png

    click on Edit :
    255779-image.png

    Update the query and click on OK

    255921-image.png

    Another way would be via visual studio code in case if you are maintaining the code

    1 person found this answer helpful.
    0 comments No comments

  2. Tina Lekše 11 Reputation points
    2022-12-15T14:09:38.74+00:00

    Hey @Mark Mace ,

    I'm not sure if this is still something you'd like to do, as it's also a late reply, however, if you want to add a new column in Tabular Editor (2), you just need to refresh the table metadata (doesn't matter if it's a view or table). You can also do a general refresh of all tables metadata, which will also tell you if any column definition/data type has changed.

    271057-image.png

    If you get an error saying it's unable to validate it's source, you just need to re-enter the password in the data source:
    271067-image.png

    Hope it helps, if you do decide to use Tabular Editor :)

    1 person found this answer helpful.
    0 comments No comments

  3. Mark Mace 71 Reputation points
    2022-11-16T04:30:24.977+00:00

    Got it. For whatever reason - after doing the above, I have to go into Visual Studio, & Refresh. Then Import, save, and Deploy solution.

    0 comments No comments

  4. Mark Mace 71 Reputation points
    2022-12-15T19:40:24.483+00:00

    @Tina Lekše

    Nice! Though, I don't seem to have those menu options in Tabular Editor 2.17.2? (I just did a quick update, just in case)

    271201-example.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.