<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Relathionships from Power BI REST API executeQuery in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4387107#M59248</link>
    <description>&lt;P&gt;Here's what I got back:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;I would like to let you know that Microsoft already found this issue and working on the fix, unfortunately there is no ETA information yet.
 
Meanwhile, could you please follow this workaround given below and let us know if you have any issue.
•	If the model is in premium, customers might be able to switch their solutions to XMLA Endpoint-based connections and query semantic models by using the AS client libraries (ADOMD.NET).
&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 29 Jan 2025 23:26:27 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-01-29T23:26:27Z</dc:date>
    <item>
      <title>Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384379#M59207</link>
      <description>&lt;P&gt;Hello,&lt;SPAN&gt;I used to have this DAX code that I executed on the endpoint to retrieve dataset relationships, but now Microsoft seems to have blocked the execution of queries with INFO.*. Is there another way to get the relationships without using the INFO functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My querie:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DEFINE 
    VAR _Table = 
        SELECTCOLUMNS(
            INFO.TABLES(),
            "TableID", [ID],
            "TableName", [Name]
        )
    VAR _Col = 
        SELECTCOLUMNS(
            INFO.COLUMNS(),
            "ColumnID", [ID],
            "ColumnName", 
                IF(
                    ISBLANK([ExplicitName]), 
                    [InferredName], 
                    [ExplicitName]
                )
        )
    VAR _RelFrom = 
        SELECTCOLUMNS(
            INFO.RELATIONSHIPS(),
            [ID],
            [FromCardinality],
            [IsActive],
            [CrossFilteringBehavior],
            [SecurityFilteringBehavior],
            "ColumnID", [FromColumnID],
            "TableID", [FromTableID]
        )
    VAR _RelTo = 
        SELECTCOLUMNS(
            INFO.RELATIONSHIPS(),
            [ID],
            [ToCardinality],
            [CrossFilteringBehavior],
            "ColumnID", [ToColumnID],
            "TableID", [ToTableID]
        )
    VAR _FromRel = 
        SELECTCOLUMNS(
            NATURALLEFTOUTERJOIN(
                NATURALLEFTOUTERJOIN(_RelFrom, _Table), 
                _Col
            ),
            [ID],
            [IsActive],
            "From Table", [TableName],
            "From Column", [ColumnName],
            "From Cardinality", 
                SWITCH(
                    [FromCardinality],
                    1, "One",
                    2, "Many",
                    "Something else"
                )
        )
    VAR _ToRel = 
        SELECTCOLUMNS(
            NATURALLEFTOUTERJOIN(
                NATURALLEFTOUTERJOIN(_RelTo, _Table), 
                _Col
            ),
            [ID],
            "To Table", [TableName],
            "To Column", [ColumnName],
            "To Cardinality", 
                SWITCH(
                    [ToCardinality],
                    1, "One",
                    2, "Many",
                    "Something else"
                )
        )
    VAR _Result = 
        SELECTCOLUMNS(
            NATURALLEFTOUTERJOIN(_FromRel, _ToRel),
            "From Table", [From Table],
            "From Column", [From Column],
            "To Table", [To Table],
            "To Column", [To Column],
            "Cardinality (From/To)", 
                UPPER([From Cardinality]) &amp;amp; " row" &amp;amp; 
                IF([From Cardinality] = "One", "", "s") &amp;amp; 
                " in '" &amp;amp; [From Table] &amp;amp; "'[" &amp;amp; [From Column] &amp;amp; "]" &amp;amp; 
                " matches to " &amp;amp; 
                UPPER([To Cardinality]) &amp;amp; " row" &amp;amp; 
                IF([To Cardinality] = "One", "", "s") &amp;amp; 
                " in '" &amp;amp; [To Table] &amp;amp; "'[" &amp;amp; [To Column] &amp;amp; "]"
        )
EVALUATE _Result&lt;/LI-CODE&gt;&lt;P&gt;This query works at Dax Studio for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcio_fornari_0-1738069007775.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1231799i115640DBD6244C41/image-size/large?v=v2&amp;amp;px=999" role="button" title="marcio_fornari_0-1738069007775.png" alt="marcio_fornari_0-1738069007775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384379#M59207</guid>
      <dc:creator>marcio_fornari</dc:creator>
      <dc:date>2025-01-28T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384845#M59213</link>
      <description>&lt;P&gt;See if the new INFO.VIEW*&amp;nbsp; calls cover that.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:12:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384845#M59213</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-28T17:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384930#M59215</link>
      <description>&lt;P&gt;The Microsoft blocked the INFO.* at this endpoint, any sugestion?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries?tryIt=true&amp;amp;source=docs#code-try-0" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries?tryIt=true&amp;amp;source=docs#code-try-0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:54:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384930#M59215</guid>
      <dc:creator>marcio_fornari</dc:creator>
      <dc:date>2025-01-28T17:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384945#M59216</link>
      <description>&lt;P&gt;Use the INFO.VIEW calls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1738087365533.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1231919iE60C2E7B31FD82D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1738087365533.png" alt="lbendlin_0-1738087365533.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384945#M59216</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-28T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384953#M59217</link>
      <description>&lt;P&gt;I need execute the dax at this endpoint:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The microsoft BLOCKED the INFO calls here..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcio_fornari_0-1738087676384.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1231921i58B130CD8BD2886A/image-size/large?v=v2&amp;amp;px=999" role="button" title="marcio_fornari_0-1738087676384.png" alt="marcio_fornari_0-1738087676384.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcio_fornari_1-1738087687792.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1231922i2A74171C44DFA2BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="marcio_fornari_1-1738087687792.png" alt="marcio_fornari_1-1738087687792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:08:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4384953#M59217</guid>
      <dc:creator>marcio_fornari</dc:creator>
      <dc:date>2025-01-28T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4386344#M59237</link>
      <description>&lt;P&gt;We have the same issue since January 24, 2025. It stopped working with an Error 400 ...&lt;/P&gt;&lt;P&gt;I will open a ticket with Microsoft.&lt;/P&gt;&lt;P&gt;Frederick&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4386344#M59237</guid>
      <dc:creator>samsonfrb</dc:creator>
      <dc:date>2025-01-29T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4386443#M59243</link>
      <description>&lt;P&gt;Confirmed, We'll probably raise a ticket as well.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 15:04:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4386443#M59243</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-29T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4387107#M59248</link>
      <description>&lt;P&gt;Here's what I got back:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;I would like to let you know that Microsoft already found this issue and working on the fix, unfortunately there is no ETA information yet.
 
Meanwhile, could you please follow this workaround given below and let us know if you have any issue.
•	If the model is in premium, customers might be able to switch their solutions to XMLA Endpoint-based connections and query semantic models by using the AS client libraries (ADOMD.NET).
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Jan 2025 23:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4387107#M59248</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-29T23:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4392602#M59312</link>
      <description>&lt;P&gt;Yes, I got the same answer from them. The problem is still live as of today. Switching to XMLA Endpoint requires some work so we'll wait for the fix.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:16:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4392602#M59312</guid>
      <dc:creator>samsonfrb</dc:creator>
      <dc:date>2025-02-03T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4393957#M59324</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi all ,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for all your feedback! Once you receive the message that the problem has been fixed, please reply below and accept it as a solution so that more users facing the same problem can find a solution faster. Thank you!&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4393957#M59324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-04T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4586697#M59658</link>
      <description>&lt;P&gt;Any updates about this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 20:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4586697#M59658</guid>
      <dc:creator>marcio_fornari</dc:creator>
      <dc:date>2025-02-26T20:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4586891#M59662</link>
      <description>&lt;P&gt;Allegedly will be fixed by end of April, allegedly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 01:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4586891#M59662</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-27T01:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Relathionships from Power BI REST API executeQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4590140#M59693</link>
      <description>&lt;P&gt;In my case, it was taking too long and having too much impact.&lt;BR /&gt;I had to rewrite my PowerShell code to use AdomdConnection, AdomdCommand et AdomdDataReader via the XMLAEndpoint.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 13:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Relathionships-from-Power-BI-REST-API-executeQuery/m-p/4590140#M59693</guid>
      <dc:creator>samsonfrb</dc:creator>
      <dc:date>2025-02-28T13:41:09Z</dc:date>
    </item>
  </channel>
</rss>

