<?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 Custom visual: Issue with dataReductionAlgorithm in capabilities.json in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-Issue-with-dataReductionAlgorithm-in-capabilities/m-p/1707473#M28226</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues with my &lt;SPAN&gt;dataReductionAlgorithm. I have attached my capabilities.json code below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a custom visual with 3 fields, one category and two measures. My issue is that the&amp;nbsp;&lt;SPAN&gt;dataReductionAlgorithm only fires if I add ALL three field into the visual, then it limits the data table to 1 row. Until I add all 3 fields, the data table includes ALL data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"dataRoles": [
        {
            "displayName": "KPI Name",
            "name": "category",
            "kind": "Grouping"
        },
        {
            "displayName": "KPI Value",
            "name": "kpimeasure",
            "kind": "Measure"
        },
        {
            "displayName": "Target Value",
            "name": "targetmeasure",
            "kind": "Measure"
        }
    ],

"dataViewMappings": [ {
            "conditions": [
                {
                    "category": { "max": 1},
                    "kpimeasure": { "max": 1},
                    "targetmeasure": { "max": 1}
                }
            ],
            "categorical": {
                "categories": { 
                    "for": { "in": "category" },
                    "dataReductionAlgorithm": { "top": {"count": 1} } 
                },
                "values": {
                    "select": [
                        { "bind": { "to": "kpimeasure" } },
                        { "bind": { "to": "targetmeasure" } }
                    ],
                    "dataReductionAlgorithm": { "top": {"count": 1} } 
                }
            }
        }
    ]&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;</description>
    <pubDate>Sun, 07 Mar 2021 18:34:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-07T18:34:37Z</dc:date>
    <item>
      <title>Custom visual: Issue with dataReductionAlgorithm in capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-Issue-with-dataReductionAlgorithm-in-capabilities/m-p/1707473#M28226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues with my &lt;SPAN&gt;dataReductionAlgorithm. I have attached my capabilities.json code below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a custom visual with 3 fields, one category and two measures. My issue is that the&amp;nbsp;&lt;SPAN&gt;dataReductionAlgorithm only fires if I add ALL three field into the visual, then it limits the data table to 1 row. Until I add all 3 fields, the data table includes ALL data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"dataRoles": [
        {
            "displayName": "KPI Name",
            "name": "category",
            "kind": "Grouping"
        },
        {
            "displayName": "KPI Value",
            "name": "kpimeasure",
            "kind": "Measure"
        },
        {
            "displayName": "Target Value",
            "name": "targetmeasure",
            "kind": "Measure"
        }
    ],

"dataViewMappings": [ {
            "conditions": [
                {
                    "category": { "max": 1},
                    "kpimeasure": { "max": 1},
                    "targetmeasure": { "max": 1}
                }
            ],
            "categorical": {
                "categories": { 
                    "for": { "in": "category" },
                    "dataReductionAlgorithm": { "top": {"count": 1} } 
                },
                "values": {
                    "select": [
                        { "bind": { "to": "kpimeasure" } },
                        { "bind": { "to": "targetmeasure" } }
                    ],
                    "dataReductionAlgorithm": { "top": {"count": 1} } 
                }
            }
        }
    ]&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;</description>
      <pubDate>Sun, 07 Mar 2021 18:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-Issue-with-dataReductionAlgorithm-in-capabilities/m-p/1707473#M28226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-07T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual: Issue with dataReductionAlgorithm in capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-Issue-with-dataReductionAlgorithm-in-capabilities/m-p/1707514#M28227</link>
      <description>&lt;P&gt;After some testing I suddenly got it to work, to be honest I don't know why.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    "dataViewMappings": [ {
            "conditions": [
                {
                    "category": { "max": 1},
                    "kpimeasure": { "max": 1},
                    "targetmeasure": { "max": 1}
                }
            ],
            "categorical": {
                "categories": { 
                    "for": { "in": "category" },
                    "dataReductionAlgorithm": { "top": {"count": 1} } 
                },
                "values": {
                    "select": [
                        { "bind": { "to": "kpimeasure" } },
                        { "bind": { "to": "targetmeasure" } }
                    ],
                    "dataReductionAlgorithm": { "top": {"count": 1} }
                }
            }
        }
    ]&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Mar 2021 20:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-Issue-with-dataReductionAlgorithm-in-capabilities/m-p/1707514#M28227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-07T20:54:35Z</dc:date>
    </item>
  </channel>
</rss>

