<?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 with aggregated values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2470883#M35644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your answer. That was really helpful! Actually, I can get the aggregation that I need with your Violin Plot visual.&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-center" image-alt="Screenshot 2022-04-22 at 09.44.48.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/703465i68EBE18B1A6A95C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-04-22 at 09.44.48.png" alt="Screenshot 2022-04-22 at 09.44.48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2022-04-22 at 09.45.02.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/703466i72C0D4C2B7D6EBC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-04-22 at 09.45.02.png" alt="Screenshot 2022-04-22 at 09.45.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, since it shows the distribution, it may be a good alternative to the Histogram that I need to develop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I still needed to create a Histogram, how should I define the data roles and data view mappings in order to have this aggregation? And how do I get the visual to use these calculated values instead of the input fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 08:02:10 GMT</pubDate>
    <dc:creator>ana-pierola</dc:creator>
    <dc:date>2022-04-22T08:02:10Z</dc:date>
    <item>
      <title>Custom visual with aggregated values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2469342#M35624</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a custom Histogram visual. I need the custom visual to take a data measure and a category, calculate aggregated sums of the measure by the category, and draw a histogram of the aggregated sum values. All this needs to be compatible with an interactive date filter. My data table looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Measure&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2022-01-02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2022-01-02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried adapting these two examples, but I have not achieved any good results:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-visuals-sampleBarChart&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/powerbi-visuals-histogram" target="_blank" rel="noopener"&gt;https://github.com/microsoft/powerbi-visuals-histogram&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint of how to do this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 14:37:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2469342#M35624</guid>
      <dc:creator>ana-pierola</dc:creator>
      <dc:date>2022-04-21T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual with aggregated values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2470078#M35632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/381415"&gt;@ana-pierola&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For any visuals that need to calculate statistics over values and aggregate them, all underlying values need to be provided to the visual dataset so that they can be computed internally. Visuals are not able to know more about the model than what is supplied to the visual data roles and data view mapping (dataset).&lt;/P&gt;
&lt;P&gt;In the case of a histogram, you will need to also supply a grouping column/field to your dataset that ensures each row is unique, such as an identify column, otherwise you will not be able to derive the correct values. Note that if you supply lots of data you may need to ensure that you can work with the row limits.&lt;/P&gt;
&lt;P&gt;The Violin Plot visual uses this approach also, and I've &lt;A href="https://coacervo.co/violin-plot-sampling" target="_self"&gt;written a post to explain thy this is necessary here&lt;/A&gt;, which may help you to understand how visuals need their data to be able to aggregate it themselves.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 22:38:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2470078#M35632</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-04-21T22:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual with aggregated values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2470883#M35644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your answer. That was really helpful! Actually, I can get the aggregation that I need with your Violin Plot visual.&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-center" image-alt="Screenshot 2022-04-22 at 09.44.48.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/703465i68EBE18B1A6A95C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-04-22 at 09.44.48.png" alt="Screenshot 2022-04-22 at 09.44.48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2022-04-22 at 09.45.02.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/703466i72C0D4C2B7D6EBC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-04-22 at 09.45.02.png" alt="Screenshot 2022-04-22 at 09.45.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, since it shows the distribution, it may be a good alternative to the Histogram that I need to develop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I still needed to create a Histogram, how should I define the data roles and data view mappings in order to have this aggregation? And how do I get the visual to use these calculated values instead of the input fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-with-aggregated-values/m-p/2470883#M35644</guid>
      <dc:creator>ana-pierola</dc:creator>
      <dc:date>2022-04-22T08:02:10Z</dc:date>
    </item>
  </channel>
</rss>

