<?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: How data reduction algorithm works? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/347060#M10293</link>
    <description>&lt;P&gt;It works well to me. DataView contains single data-row for each date.&lt;/P&gt;&lt;P&gt;Can you share DataView object that you get in the&amp;nbsp;&lt;STRONG&gt;update&lt;/STRONG&gt; method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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>Mon, 29 Jan 2018 10:16:19 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-01-29T10:16:19Z</dc:date>
    <item>
      <title>How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345798#M10254</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with data reduction algorithm. As I understood from the tutorials, data algorithm works to limit data selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code in capabilities&lt;/P&gt;&lt;PRE&gt;"values": {
				"group": {
                "by": "date",
                    "select": [		
						
						{
                            "bind": {
                                "to": "value1"
                            }
                        },
						{
                            "bind": {
                                "to": "value1_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value2"
                            }
                        },{
                            "bind": {
                                "to": "value2_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value3"
                            }
                        },{
                            "bind": {
                                "to": "value3_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value4"
                            }
                        },{
                            "bind": {
                                "to": "value4_unit"
                            }
                        }

                    ]
					,
					"dataReductionAlgorithm": {
						"bottom": {
						 "count": 1
					 }
					}
					}
                }&lt;/PRE&gt;&lt;P&gt;By logic, it should group my values by date and select latest, since I'm choosing bottom 1. However, I get all of the data. Where is the problem? Or is there more detailed manual for algorithm.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 07:18:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345798#M10254</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-01-26T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345830#M10255</link>
      <description>&lt;P&gt;You have to specify dataReduction for categories as well to limit amount of data rows.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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, 26 Jan 2018 08:14:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345830#M10255</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-01-26T08:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345837#M10257</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used same data reduction function&amp;nbsp;for categories, with bottom and count equal to 1. However, I still get full amount of data.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 08:18:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345837#M10257</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-01-26T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345851#M10260</link>
      <description>&lt;P&gt;Please share the whole capabilities.json&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 08:35:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345851#M10260</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-01-26T08:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345867#M10261</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Item name",
            "name": "category",
            "kind": "Grouping"
        },
        {
            "displayName": "Dates",
            "name": "date",
            "kind": "Grouping"
        },
        {
            "displayName": "value1",
            "name": "value1",
            "kind": "Measure"
        },
		{
            "displayName": "value1 unit",
            "name": "value1_unit",
            "kind": "Measure"
        },

        {
            "displayName": "value2",
            "name": "value2",
            "kind": "Measure"
        },
		{
            "displayName": "value2 unit",
            "name": "value2_unit",
            "kind": "Measure"
        },
		{
            "displayName": "value3",
            "name": "value3",
            "kind": "Measure"
        },
		{
            "displayName": "value3 unit",
            "name": "value3_unit",
            "kind": "Measure"
        },
        {
            "displayName": "value4",
            "name": "value4",
            "kind": "Measure"
        },
        {
            "displayName": "value4 unit",
            "name": "value4_unit",
            "kind": "Measure"
        }
    ],
    "objects": {
		"myCustomObj": {
		"displayName": "Chart settings",
      "properties": {
                
				"threshold_color_1": {
                    "displayName": "threshold_color_1",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                }
				,
				"threshold_color_2": {
                    "displayName": "threshold_color_2",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },"threshold_color_3": {
                    "displayName": "threshold_color_3",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },
				"threshold_color_4": {
                    "displayName": "threshold_color_4",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },
				"fontSize": {
                    "displayName": "Text Size",
                    "type": {
                        "formatting": {
                            "fontSize": true
                        }
                    }
                },
				"fontSize_sec": {
                    "displayName": "Text Size for sec",
                    "type": {
                        "formatting": {
                            "fontSize": true
                        }
                    }
                },
				"fontFamily": {
                    "displayName": "Font family",
                    "type": {
                        "enumeration": [
                            {"value": "Arial", "displayName": "Arial"},
							{"value": "Arial Black", "displayName": "Arial Black"},
							{"value": "Arial Unicode MS", "displayName": "Arial Unicode MS"},
							{"value": "Bookman Old Style", "displayName": "Bookman Old Style"},
							{"value": "Calibri", "displayName": "Calibri"},
							{"value": "Cambria", "displayName": "Cambria"},
							{"value": "Candara", "displayName": "Candara"},
							{"value": "Castellar", "displayName": "Castellar"},
							{"value": "Comic Sans MS", "displayName": "Comic Sans MS"},
							{"value": "Consolas", "displayName": "Consolas"},
							{"value": "Constantia", "displayName": "Constantia"},
							{"value": "Corbel", "displayName": "Corbel"},
							{"value": "Courier New", "displayName": "Courier New"},
							{"value": "Georgia", "displayName": "Georgia"},
							{"value": "Impact", "displayName": "Impact"},
							{"value": "Lucida Calligraphy", "displayName": "Lucida Calligraphy"},
							{"value": "Lucida Sans Unicode", "displayName": "Lucida Sans Unicode"},
							{"value": "Segoe UI", "displayName": "Segoe UI"},
							{"value": "Segoe UI Light", "displayName": "Segoe UI Light"},
							{"value": "Symbol", "displayName": "Symbol"},
							{"value": "Tahoma", "displayName": "Tahoma"},
							{"value": "Times New Roman", "displayName": "Times New Roman"},
							{"value": "Trebuchet MS", "displayName": "Trebuchet MS"},
							{"value": "Verdana", "displayName": "Verdana"}
                        ]
                    }
                },
				"text_color": {
                    "displayName": "text color",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },
				"threshold_1": {
                    "displayName": "value1 threshold",
                    "type": {
                        "numeric": true }
                }
				,
				"threshold_3": {
                    "displayName": "value3 threshold",
                    "type": {
                        "numeric": true }
                }
				,
				"threshold_2": {
                    "displayName": "value2 threshold",
                    "type": {
                        "numeric": true }
                }
				,
				"threshold_4": {
                    "displayName": "value4 threshold",
                    "type": {
                        "numeric": true }
                }
				
		}
	},
        "dataPoint": {
            "displayName": "Data colors",
            "properties": {
                "defaultColor": {
                    "displayName": "Default color",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },
                "showAllDataPoints": {
                    "displayName": "Show all",
                    "type": {
                        "bool": true
                    }
                },
                "fill": {
                    "displayName": "Fill",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                },
                "fillRule": {
                    "displayName": "Color saturation",
                    "type": {
                        "fill": {}
                    }
                },
                 "fontSize": {
                    "displayName": "Text Size",
                    "type": {
                        "formatting": {
                            "fontSize": true
                        }
                    }
                }
            }
        }
    },
    "dataViewMappings": [
        {
            "categorical":
				{
                "categories": {
					"select": [
						
							{
							"for": {
								"in": "category"
							}
						},
						{
							"for": {
								"in": "date"
							}
						}
					],
					"dataReductionAlgorithm": {
						"bottom": {
						 "count": 1
					 }
					}
				},
                "values": {
				"group": {
            "by": "date",
                    "select": [		
						
						
						{
                            "bind": {
                                "to": "value1"
                            }
                        },
						{
                            "bind": {
                                "to": "value1_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value2"
                            }
                        },{
                            "bind": {
                                "to": "value2_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value3"
                            }
                        },{
                            "bind": {
                                "to": "value3_unit"
                            }
                        },
                        {
                            "bind": {
                                "to": "value4"
                            }
                        },{
                            "bind": {
                                "to": "value4_unit"
                            }
                        }

                    ]
					,
					"dataReductionAlgorithm": {
						"bottom": {
						 "count": 1
					 }
					}
					}
                }
            }
        }
    ]
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jan 2018 08:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/345867#M10261</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-01-26T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/347060#M10293</link>
      <description>&lt;P&gt;It works well to me. DataView contains single data-row for each date.&lt;/P&gt;&lt;P&gt;Can you share DataView object that you get in the&amp;nbsp;&lt;STRONG&gt;update&lt;/STRONG&gt; method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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>Mon, 29 Jan 2018 10:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/347060#M10293</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-01-29T10:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/347771#M10304</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed my data links, and now it is working. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 06:27:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/347771#M10304</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-01-30T06:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How data reduction algorithm works?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/916233#M22149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share, what exactly did you change to fix this&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 09:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-data-reduction-algorithm-works/m-p/916233#M22149</guid>
      <dc:creator>gauravkh</dc:creator>
      <dc:date>2020-01-30T09:04:47Z</dc:date>
    </item>
  </channel>
</rss>

