Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Does XMLA has an equivalent of TMSL's createOrReplace?
I tried with Alter Element but it did not work.
If you script it out from SSMS it will be in the XML structure?
ssms does not have any ALTER to script that is equivalent to TMSL's createOrReplace.
Please check further back in the thread. I provided just such an example. I selected an object and clicked the Script button.
That is not my requirement and lets not turn this into a XY problem.
No, that produces JSON. However that works well enough, so I don't really see the need to insist on XML.
seems to be the same syntax.
{
"createOrReplace": {
"object": {
"database": "Opportunity Field History",
"table": "Opportunities",
"partition": "2014"
},
"partition": {
"name": "2014",
"mode": "import",
"source": {
"type": "policyRange",
"start": "2014-01-01T00:00:00",
"end": "2015-01-01T00:00:00",
"granularity": "year"
}
}
}
}
This is TMSL, I am looking for XMLA
I thought so too but you can use that as is in your XMLA calls.
Login-PowerBI
$XmlaQuery = @"
{
"refresh": {
"type": "automatic",
"applyRefreshPolicy": true,
"effectiveDate": "1/1/2024",
"objects": [
{
"database": "Analyze in Excel",
"table": "Details"
}
]
}
}
"@
# URL is a relative or absolute URL of the Power BI entity to access.
$res=Invoke-PowerBIRestMethod -Url 'groups/xxx/datasets/yyy/refreshes' -Method Post -Body $XmlaQuery
etc.
Thanks but I am looking for the XML structured query for xmla and not json structured query. Currently pq formatting in json structure is a pure nightmare (bism normalizer) , I need to see how the same appears in xml structure.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
28 | |
26 | |
22 | |
22 | |
18 |
User | Count |
---|---|
52 | |
34 | |
28 | |
24 | |
21 |