<?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: Matrix table view in Custom visuals. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-table-view-in-Custom-visuals/m-p/315264#M9329</link>
    <description>&lt;P&gt;I think it'd be better to use&amp;nbsp;&lt;STRONG&gt;table&lt;/STRONG&gt; or &lt;STRONG&gt;matrix&amp;nbsp;&lt;/STRONG&gt;data-mappings instead of &lt;STRONG&gt;categorical&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Summize Category",
            "name": "myCategory",
            "kind": "Grouping"
        },
        {
            "displayName": "Measure Data",
            "name": "myMeasure",
            "kind": "Measure"
        }
    ],
    "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {
                            "for": {
                                "in": "myCategory"
                            }
                        },
                        {
                            "for": {
                                "in": "myMeasure"
                            }
                        }
                    ]
                }
            }
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 06:54:15 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2017-12-01T06:54:15Z</dc:date>
    <item>
      <title>Matrix table view in Custom visuals.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-table-view-in-Custom-visuals/m-p/314681#M9315</link>
      <description>&lt;P&gt;I'm trying to build a custom visual, there i need the data like what we have in tables. I drag two column into &lt;STRONG&gt;"Summize Category"&lt;/STRONG&gt;(Category name) and one column into &lt;STRONG&gt;"Measure Data".&amp;nbsp;&lt;/STRONG&gt;In dataview array contains categorical in that categories has multiple column. But values showing for only first category. Is there anything i need to tweak in dataviewmapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following json structure is &lt;STRONG&gt;data roles&lt;/STRONG&gt; and &lt;STRONG&gt;Data View Mappings&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "dataRoles": [
    {
      "displayName": "Summize Category",
      "name": "myCategory",
      "kind": "Grouping"
    },
    {
      "displayName": "Measure Data",
      "name": "myMeasure",
      "kind": "Measure"
    }
  ],
  "dataViewMappings": [
    {
      "categorical": {
        "categories": {
          "for": {
            "in": "myCategory"
          },
          "dataReductionAlgorithm": {
            "top": {}
          }
        },
        "values": {
          "select": [
            {
              "bind": {
                "to": "myMeasure"
              }
            }
          ]
        }
      }
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results of Data&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;"dataViews": [
    {
      "categorical": {
        "categories": {
          "0": {
            "source": {
              "roles": {
                "myCategory": true
              },
              "type": {
                "underlyingType": 1,
                "category": null
              },
              "displayName": "day",
              "queryName": "vthink_dev_database tipsData.day",
              "expr": {
                "_kind": 2,
                "source": {
                  "_kind": 0,
                  "entity": "vthink_dev_database tipsData"
                },
                "ref": "day"
              }
            },
            "values": [
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun",
              "Sun"
            ]
          },
          "1": {
            "source": {
              "roles": {
                "myCategory": true
              },
              "type": {
                "underlyingType": 260,
                "category": null
              },
              "format": "0",
              "displayName": "id",
              "queryName": "vthink_dev_database tipsData.id",
              "expr": {
                "_kind": 2,
                "source": {
                  "_kind": 0,
                  "entity": "vthink_dev_database tipsData"
                },
                "ref": "id"
              }
            }
          }
        }
      }
    }
  ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Matrix-table-view-in-Custom-visuals/m-p/314681#M9315</guid>
      <dc:creator>Sundar1606</dc:creator>
      <dc:date>2017-11-30T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix table view in Custom visuals.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-table-view-in-Custom-visuals/m-p/315264#M9329</link>
      <description>&lt;P&gt;I think it'd be better to use&amp;nbsp;&lt;STRONG&gt;table&lt;/STRONG&gt; or &lt;STRONG&gt;matrix&amp;nbsp;&lt;/STRONG&gt;data-mappings instead of &lt;STRONG&gt;categorical&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Summize Category",
            "name": "myCategory",
            "kind": "Grouping"
        },
        {
            "displayName": "Measure Data",
            "name": "myMeasure",
            "kind": "Measure"
        }
    ],
    "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {
                            "for": {
                                "in": "myCategory"
                            }
                        },
                        {
                            "for": {
                                "in": "myMeasure"
                            }
                        }
                    ]
                }
            }
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 06:54:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Matrix-table-view-in-Custom-visuals/m-p/315264#M9329</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-01T06:54:15Z</dc:date>
    </item>
  </channel>
</rss>

