<?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: PowerBI API not found for Cardinality(Many to Many) while creating DataSets or tables in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2917719#M39842</link>
    <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried same approach but not worked for me.&lt;/P&gt;&lt;P&gt;API Endpoint -&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;https:&lt;/SPAN&gt;&lt;SPAN class=""&gt;//&lt;/SPAN&gt;&lt;SPAN class=""&gt;api&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;powerbi&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;com&lt;/SPAN&gt;&lt;SPAN class=""&gt;/v1.0/&lt;/SPAN&gt;&lt;SPAN class=""&gt;myorg&lt;/SPAN&gt;&lt;SPAN class=""&gt;/groups/{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ID}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;datasets&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Below is snippet from request:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;BR /&gt;"fromColumn": "judgeId",&lt;BR /&gt;"fromTable": "DocketJudge",&lt;BR /&gt;"ToCardinality": "one",&lt;BR /&gt;"name": "judgeEducation",&lt;BR /&gt;"toColumn": "judgeId",&lt;BR /&gt;"toTable": "JudgeEducation",&lt;BR /&gt;"FromCardinality": "many",&lt;BR /&gt;"crossFilteringBehavior": "bothDirections"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It failed with 400 Bad Request error saying "The property 'ToCardinality' does not exist on type 'Microsoft.PowerBI.ServiceContracts.Api.Relationship"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 06:28:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-21T06:28:37Z</dc:date>
    <item>
      <title>PowerBI API not found for Cardinality(Many to Many) while creating DataSets or tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2905381#M39743</link>
      <description>&lt;P&gt;I am looking for API details to create dataset with many to many cardinality relationship between tables.&lt;/P&gt;&lt;P&gt;I have multiple tables and I am able to give BothDirections relationships using API but unable to find any API for cardinality.&lt;/P&gt;&lt;P&gt;Below is API endpoint which I am using to create datasets:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;https:&lt;/SPAN&gt;&lt;SPAN class=""&gt;//&lt;/SPAN&gt;&lt;SPAN class=""&gt;api&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;powerbi&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;com&lt;/SPAN&gt;&lt;SPAN class=""&gt;/v1.0/&lt;/SPAN&gt;&lt;SPAN class=""&gt;myorg&lt;/SPAN&gt;&lt;SPAN class=""&gt;/groups/{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ID}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;datasets&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any recommendations please.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 05:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2905381#M39743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T05:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API not found for Cardinality(Many to Many) while creating DataSets or tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2908451#M39765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you using the following REST API to create the dataset? According to my research, there is no explicit definition of the cardinality property exactly. I think it may be because power BI intelligently identifies the cardinality between tables based on the data in the tables.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-post-dataset-in-group#relationship" target="_self"&gt;Push Datasets - Datasets PostDatasetInGroup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1668580930429.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/823818i40F08F89B3BB8DA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1668580930429.png" alt="yingyinr_0-1668580930429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please review the blog below to see if you can programmatically define the cardinality value explicitly.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.powerbidevcamp.net/articles/programming-datasets-with-TOM/" target="_self" rel="nofollow noopener noreferrer"&gt;Programming Datasets with the Tabular Object Model (TOM)&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;model.Relationships.Add(new SingleColumnRelationship {
  Name = "Products to Sales",
  ToColumn = tableProducts.Columns["ProductId"],
  ToCardinality = RelationshipEndCardinality.One,
  FromColumn = tableSales.Columns["ProductId"],
  FromCardinality = RelationshipEndCardinality.Many
});&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 06:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2908451#M39765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-16T06:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API not found for Cardinality(Many to Many) while creating DataSets or tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2917719#M39842</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried same approach but not worked for me.&lt;/P&gt;&lt;P&gt;API Endpoint -&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;https:&lt;/SPAN&gt;&lt;SPAN class=""&gt;//&lt;/SPAN&gt;&lt;SPAN class=""&gt;api&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;powerbi&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;com&lt;/SPAN&gt;&lt;SPAN class=""&gt;/v1.0/&lt;/SPAN&gt;&lt;SPAN class=""&gt;myorg&lt;/SPAN&gt;&lt;SPAN class=""&gt;/groups/{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ID}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;datasets&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Below is snippet from request:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;BR /&gt;"fromColumn": "judgeId",&lt;BR /&gt;"fromTable": "DocketJudge",&lt;BR /&gt;"ToCardinality": "one",&lt;BR /&gt;"name": "judgeEducation",&lt;BR /&gt;"toColumn": "judgeId",&lt;BR /&gt;"toTable": "JudgeEducation",&lt;BR /&gt;"FromCardinality": "many",&lt;BR /&gt;"crossFilteringBehavior": "bothDirections"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It failed with 400 Bad Request error saying "The property 'ToCardinality' does not exist on type 'Microsoft.PowerBI.ServiceContracts.Api.Relationship"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-not-found-for-Cardinality-Many-to-Many-while/m-p/2917719#M39842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T06:28:37Z</dc:date>
    </item>
  </channel>
</rss>

