<?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: Getting filtered grouping values in custom visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-filtered-grouping-values-in-custom-visual/m-p/154953#M5249</link>
    <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="7815" data-lia-user-login="teroman" class="lia-mention lia-mention-user"&gt;teroman&lt;/a&gt;,

You may check if it can be done using a Slicer visualization.</description>
    <pubDate>Thu, 06 Apr 2017 17:06:44 GMT</pubDate>
    <dc:creator>v-chuncz-msft</dc:creator>
    <dc:date>2017-04-06T17:06:44Z</dc:date>
    <item>
      <title>Getting filtered grouping values in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-filtered-grouping-values-in-custom-visual/m-p/153984#M5207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing a custom visual and want to allow the following scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) User picks several grouping columns for the visual&lt;/P&gt;&lt;P&gt;2) These are auto-filtered by other visuals/report filters etc&lt;/P&gt;&lt;P&gt;3) My custom visual gets the distinct values of each grouping column and uses them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My inital plan was to have several dataRoles&lt;/P&gt;&lt;PRE&gt;"dataRoles": [
        {
            "displayName": "Group1",
            "name": "group1",
            "kind": 0
        },
	{
            "displayName": "Group2",
            "name": "group2",
            "kind": 0
        }
        , etc
    ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and then have several dataViewMappings&lt;/P&gt;&lt;PRE&gt;"dataViewMappings": [
	{
		"conditions": [
		    { "group1": { "min": 1, "max": 1 } }
		],
	        "table": {
	            "rows": {
	                "for": {
	                    "in": "group1"
	                }
	            }
	        }
       }
//repeat for other groupings
]&lt;/PRE&gt;&lt;P&gt;but sadly Power BI will only return one dataView in the visual.update() so it seems for now this will not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an alternate way to get the lists I'm after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I considered crossjoining all the columns, but it there are many then the data set size will soon become massive. (especially when the report is first opened and no filters have been applied)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 11:56:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-filtered-grouping-values-in-custom-visual/m-p/153984#M5207</guid>
      <dc:creator>teroman</dc:creator>
      <dc:date>2017-04-05T11:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filtered grouping values in custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-filtered-grouping-values-in-custom-visual/m-p/154953#M5249</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="7815" data-lia-user-login="teroman" class="lia-mention lia-mention-user"&gt;teroman&lt;/a&gt;,

You may check if it can be done using a Slicer visualization.</description>
      <pubDate>Thu, 06 Apr 2017 17:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-filtered-grouping-values-in-custom-visual/m-p/154953#M5249</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-04-06T17:06:44Z</dc:date>
    </item>
  </channel>
</rss>

