<?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: Custom Visual - How to get measure aggregation type in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/433315#M13295</link>
    <description>&lt;P&gt;No, subtotals are not supported yet. This feature is on our backlog (no ETA).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one more note, If you calculate totals in JS they might be a bit wrong as Power BI does not allow to get more than 1000 rows by default. This value can be configure via dataReductionAlgorithm but it can't be greater than 30000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&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>Wed, 06 Jun 2018 07:39:55 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-06-06T07:39:55Z</dc:date>
    <item>
      <title>Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/428629#M13031</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing a custom matrix visual . The dataview has a matrix , when I get measures data(Values) , I need to know what type of aggregation measure is (sum, count , average , min ,max ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get measure aggregation type programmatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my capabilities.json&lt;/P&gt;&lt;PRE&gt;{
        "dataRoles": [
            {
                "displayName": "Rows",
                "name": "rows",
                "kind": "Grouping"
            },
            {
                "displayName": "Columns",
                "name": "columns",
                "kind": "Grouping"
            },
            {
                "displayName": "Filters",
                "name": "filters",
                "kind": "Grouping"
            },
            {
                "displayName": "Values",
                "name": "measure",
                "kind": "Measure"
            }
        ],
        "dataViewMappings": [
            {
                "conditions": [
                    {
                        "rows": {
                            "max": 0
                        },
                        "columns": {
                            "max": 0
                        },
                        "measure": {
                            "min": 1
                        }
                    },
                    {
                        "rows": {
                            "min": 1
                        },
                        "columns": {
                            "min": 0
                        },
                        "measure": {
                            "min": 0
                        }
                    },
                    {
                        "rows": {
                            "min": 0
                        },
                        "columns": {
                            "min": 1
                        },
                        "measure": {
                            "min": 0
                        }
                    }
                ],
                "matrix": {
                    "rows": {
                        "select": [
                            {
                                "for": {
                                    "in": "rows"
                                }
                            },
                            {
                                "for": {
                                    "in": "filters"
                                }
                            }
                        ],
                        "dataReductionAlgorithm": {
                            "top": {
                                "count": 30000
                            }
                        }
                    },
                    "columns": {
                        "for": {
                            "in": "columns"
                        },
                        "dataReductionAlgorithm": {
                            "top": {
                                "count": 10000
                            }
                        }
                    },
                    "values": {
                        "select": [
                            {
                                "bind": {
                                    "to": "measure"
                                }
                            }
                        ]
                    }
                }
            }
        ],
        "objects": {
            "total": {
                "displayName": "Show Total",
                "properties": {
                    "columnTotal": {
                        "displayName": "Column",
                        "type": {
                            "bool": true
                        }
                    },
                    "rowTotal": {
                        "displayName": "Row",
                        "type": {
                            "bool": true
                        }
                    },
                    "columnGrandTotal": {
                        "displayName": "Grand Column",
                        "type": {
                            "bool": true
                        }
                    },
                    "rowGrandTotal": {
                        "displayName": "Grand Row",
                        "type": {
                            "bool": true
                        }
                    }
                }
            }
        }
    }&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2018 14:54:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/428629#M13031</guid>
      <dc:creator>israelovg</dc:creator>
      <dc:date>2018-05-30T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/429189#M13050</link>
      <description>&lt;P&gt;There's not good way to detect type but you might try to detect type by displayName.&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="image.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/98719iC8BCA0ACEEF8531A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&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>Thu, 31 May 2018 07:49:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/429189#M13050</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-05-31T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/431510#M13232</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm trying to calculate matrix measure&amp;nbsp; totals/subtotals (sum,count,average,min,max) .&lt;/P&gt;&lt;P&gt;Is there a way configure my capabilities.json that will bring&amp;nbsp;&lt;SPAN&gt;matrix measure&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;subtotals for row/column items?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Advance .&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 14:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/431510#M13232</guid>
      <dc:creator>israelovg</dc:creator>
      <dc:date>2018-06-04T14:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/433315#M13295</link>
      <description>&lt;P&gt;No, subtotals are not supported yet. This feature is on our backlog (no ETA).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one more note, If you calculate totals in JS they might be a bit wrong as Power BI does not allow to get more than 1000 rows by default. This value can be configure via dataReductionAlgorithm but it can't be greater than 30000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&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>Wed, 06 Jun 2018 07:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/433315#M13295</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-06-06T07:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/577309#M17793</link>
      <description>&lt;P&gt;Is there any update on how to get measure aggregation type?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/577309#M17793</guid>
      <dc:creator>v-dancos</dc:creator>
      <dc:date>2018-12-03T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual - How to get measure aggregation type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/578062#M17806</link>
      <description>&lt;P&gt;You can try using the solution described in my previous comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 07:13:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-How-to-get-measure-aggregation-type/m-p/578062#M17806</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-12-04T07:13:36Z</dc:date>
    </item>
  </channel>
</rss>

