Forum Discussion

jaryszek's avatar
jaryszek
Icon for Super User rankSuper User
6 months ago
Solved

How to update shared expression automatically?

Hello,   How to update shared expression in the semantic model on DirectLake over the OneLake programmatically?       Best, Jacek
  • v-hashadapu's avatar
    v-hashadapu
    6 months ago

    Hi jaryszek , Thank you for reaching out to the Microsoft Community Forum.

     

    PowerShell can be used, but not through the standard Power BI PowerShell cmdlets. Those modules mainly cover administrative tasks and don’t support modifying semantic model metadata like shared expressions. To do this with PowerShell, you would still connect to the workspace XMLA endpoint and use the Tabular Object Model (TOM) from the Microsoft.AnalysisServices.Tabular .NET library within the script to update the expression and save the model.