<?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: PushDataset Table source in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2436068#M35328</link>
    <description>&lt;P&gt;Oh, thanks for response, but this isn´t solution what I expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look, in documentation I found what properties table has.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table body.PNG" style="width: 884px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/694464i6BDF755A00D644A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="table body.PNG" alt="table body.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is a property source and it should be array of ASMashupExpression, so I tried create one table in push dataset like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "name": "SalesDataset",
  "tables":[
    {
      "name": "Product",
      "columns": [
        {
          "name": "ProductID",
          "dataType": "Int64"
        },
        {
          "name": "Name",
          "dataType": "string"
        },
        {
          "name": "Category",
          "dataType": "string"
        }
      ]
    },
    {
      "name": "Reference",
      "columns": [
        {
          "name": "Category",
          "dataType": "string"
        },
        {
          "name": "Count",
          "dataType": "Int64"
        }
      ],
      "source":[
          "SUMMARIZECOLUMNS(Product[Category], \"Count\", Count(Product[ProductID])"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it created a dataset with two tables, but table Reference will have specific DAX expression and create table from table Product. But when I use it in API, it throws an error. "Cannot deserialize"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
      "name": "Reference",
      "columns": [
        {
          "name": "Category",
          "dataType": "string"
        },
        {
          "name": "Count",
          "dataType": "Int64"
        }
      ],
      "source":[
          "SUMMARIZECOLUMNS(Product[Category], \"Count\", Count(Product[ProductID])"
      ]
  
}&lt;/LI-CODE&gt;&lt;P&gt;So, I tried to use function PutTable, but there it throws error too, but there is more specific.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"The property with name '' was found with a value node of type 'PrimitiveValue'; however, a complex value of type 'Microsoft.PowerBI.ServiceContracts.ASModel.Metadata.ASMashupExpression' was expected."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 15:11:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-04T15:11:23Z</dc:date>
    <item>
      <title>PushDataset Table source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2423990#M35217</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a push dataset with table that have source from other table created in the dataset. Say, we have a dataset, where is table Product with columns as ID, Name and Description. I want make a other table RefProduct which will be connected to table Product. I can make it in Power BI Desktop, where it easy to make, but I can´t find right syntax doing it for push dataset. If it able to do, is there a option make a filter too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Martin&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I want make that push dataset by API.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 10:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2423990#M35217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-29T10:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: PushDataset Table source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2430971#M35275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following link to create the dataset in the workspace:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-post-dataset-in-group" target="_self"&gt;Push Datasets - Datasets PostDatasetInGroup&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
   "name":"dataset name",
   "defaultMode":"Push",
   "tables":[
      {
         "name":"Product",
         "columns":[
            {
               "name":"ID",
               "dataType":"Int64"
            },
            {
               "name":"Name",
               "dataType":"string"
            },
            {
               "name":"Description",
               "dataType":"string"
            }
         ]
      }
   ]
}&lt;/LI-CODE&gt;
&lt;P&gt;And you can refer the following blog to&amp;nbsp;&lt;SPAN&gt;create relationships among tables in a dataset through Power BI REST API.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/newdatasets/" target="_self"&gt;&lt;SPAN&gt;Relationship&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;“relationships”: [

{

“name”: “2ea345ce-b147-436e-8ac2-9d3c4d82af8d”,

“fromTable”: “sales”,

“fromColumn”: “Date”,

“toTable”: “Date”,

“toColumn”: “Date”,

“crossFilteringBehavior”: “bothDirections”

},

{

“name”: “5d95f419-e589-4345-9581-6e70670b1bba”,

“fromTable”: “forecast”,

“fromColumn”: “date”,

“toTable”: “Date”,

“toColumn”: “Date”,

“crossFilteringBehavior”: “bothDirections”

}

]&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 04:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2430971#M35275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-01T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: PushDataset Table source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2436068#M35328</link>
      <description>&lt;P&gt;Oh, thanks for response, but this isn´t solution what I expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look, in documentation I found what properties table has.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table body.PNG" style="width: 884px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/694464i6BDF755A00D644A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="table body.PNG" alt="table body.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is a property source and it should be array of ASMashupExpression, so I tried create one table in push dataset like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "name": "SalesDataset",
  "tables":[
    {
      "name": "Product",
      "columns": [
        {
          "name": "ProductID",
          "dataType": "Int64"
        },
        {
          "name": "Name",
          "dataType": "string"
        },
        {
          "name": "Category",
          "dataType": "string"
        }
      ]
    },
    {
      "name": "Reference",
      "columns": [
        {
          "name": "Category",
          "dataType": "string"
        },
        {
          "name": "Count",
          "dataType": "Int64"
        }
      ],
      "source":[
          "SUMMARIZECOLUMNS(Product[Category], \"Count\", Count(Product[ProductID])"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it created a dataset with two tables, but table Reference will have specific DAX expression and create table from table Product. But when I use it in API, it throws an error. "Cannot deserialize"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
      "name": "Reference",
      "columns": [
        {
          "name": "Category",
          "dataType": "string"
        },
        {
          "name": "Count",
          "dataType": "Int64"
        }
      ],
      "source":[
          "SUMMARIZECOLUMNS(Product[Category], \"Count\", Count(Product[ProductID])"
      ]
  
}&lt;/LI-CODE&gt;&lt;P&gt;So, I tried to use function PutTable, but there it throws error too, but there is more specific.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"The property with name '' was found with a value node of type 'PrimitiveValue'; however, a complex value of type 'Microsoft.PowerBI.ServiceContracts.ASModel.Metadata.ASMashupExpression' was expected."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 15:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PushDataset-Table-source/m-p/2436068#M35328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-04T15:11:23Z</dc:date>
    </item>
  </channel>
</rss>

