This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello,
I have a situation where I need to add new attributes to the Power BI Semantic Model (published to Service). Is there a way to refresh the metadata of a semantic model using an API or programmatically?
A little background: The table is structured with attributes and their values, which must be pivoted based on the requirement.
| Type | Value |
| ID | 1 |
| Title | Text |
| Date | 2024-09-04 |
| ID | Title | Date |
| 1 | Text | 2024-09-04 |
I need to ensure that any new attributes added to the data source are included as new columns in the model without having to refresh it on the desktop and publish it every time.
Example,
| Type | Value | |
| ID | 1 | |
| Title | Text | |
| Date | 2024-09-04 | |
| Is Completed | yes | yes |
| Completed Date | 2024-09-06 |
Solved! Go to Solution.
That's what ALM Toolkit does. Or you can go rogue and craft your own XMLA.
Hi @SivaMani
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
As a side note - Power Query HATES data source changes. It will punish you with endless "Evaluating..." dialogues that you can either sit out or cancel (which will make it worse). So think twice before you go that route.
Hi @SivaMani ,
I think pivot will be able to handle it.Can you check once -
PivotedTable = Table.Pivot(RemoveDuplicates, List.Distinct(RemoveDuplicates[Type]), "Type", "Value")
Thanks,
Sai Teja
I believe It may not work. As Power BI Service only refreshes the source's data. However, Power BI desktop does data and schema refreshes.
I am looking for a way to refresh the schema of the semantic model published to Service, either through a tool or programmatically.
That's what ALM Toolkit does. Or you can go rogue and craft your own XMLA.
@lbendlin Is there any documentation/blog on using ALM Toolkit for my use case?
Use ALM Toolkit.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 9 | |
| 8 | |
| 6 |
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 15 | |
| 13 |