Share via

TMSL request alter column description

Kazanskyi, Oleg 51 Reputation points
2022-03-10T14:40:58.64+00:00

I am a nub in TMSL and I need your help.

I am trying to add a description to the column in Poweer BI Services with a command:
{
"alter ": {
"object": {
"database": "dataset_test",
"table": "005_SHIP_TO_LOCATIONS",
"column":"CREATION_DATE"
},
"column": {
"name": "CREATION_DATE",
"description":"This is the new description"
}
}
}

The error I get is:

Unrecognized command: alter . Check path '['alter ']', line 2, position 13.

Could you help me to make it work?

This is Power BI Premium and I TMSL works for table name modification, but I can't figure out how to change the column description.

SQL Server Reporting Services
SQL Server Reporting Services

A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.

SQL Server Analysis Services
SQL Server Analysis Services

A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.

0 comments No comments

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,551 Reputation points
    2022-03-11T02:57:20.863+00:00

    Hi @Kazanskyi, Oleg ,

    As said alter-command-tmsl in this documentation.

    Alter command can be used to alter object like database, connection, table, partition and role, but it could not be used for only one of the column description. To do that, you might need to specify all the columns that existed in the table.

    I'd suggest that you may use DAX Editor to do the changes.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

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