<?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 Using applyJsonFilters on a Date Hierarchy in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-applyJsonFilters-on-a-Date-Hierarchy/m-p/3279473#M7661</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am desperately trying to get applyJsonFilters to work on a Date Hierarchy. No matter what I try (TupleFilter, HierarchyFilter), nothing works. I really have no clue how to get around this. The normal TupleFilter on all other dimensions works just fine.&lt;/P&gt;&lt;P&gt;Simply nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a working example for this? I couldn't find anything about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 12:22:38 GMT</pubDate>
    <dc:creator>JonasV</dc:creator>
    <dc:date>2023-06-12T12:22:38Z</dc:date>
    <item>
      <title>Using applyJsonFilters on a Date Hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-applyJsonFilters-on-a-Date-Hierarchy/m-p/3279473#M7661</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am desperately trying to get applyJsonFilters to work on a Date Hierarchy. No matter what I try (TupleFilter, HierarchyFilter), nothing works. I really have no clue how to get around this. The normal TupleFilter on all other dimensions works just fine.&lt;/P&gt;&lt;P&gt;Simply nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a working example for this? I couldn't find anything about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 12:22:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-applyJsonFilters-on-a-Date-Hierarchy/m-p/3279473#M7661</guid>
      <dc:creator>JonasV</dc:creator>
      <dc:date>2023-06-12T12:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using applyJsonFilters on a Date Hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-applyJsonFilters-on-a-Date-Hierarchy/m-p/3303854#M7719</link>
      <description>&lt;P&gt;For anyone looking into this in the future:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime I found a solution, which I am not sure of if it the way it is supposed to work. If you are using the example from the documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/de-de/power-bi/developer/visuals/filter-api" target="_blank"&gt;https://learn.microsoft.com/de-de/power-bi/developer/visuals/filter-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you have to read the following property from the&amp;nbsp;powerbi.DataViewMetadataColumn:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;column&lt;/SPAN&gt;.&lt;SPAN&gt;identityExprs&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;].&lt;SPAN&gt;source&lt;/SPAN&gt;.entity&lt;/PRE&gt;&lt;P&gt;and pass this as the &lt;STRONG&gt;table&lt;/STRONG&gt; property for the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;IFilterTarget&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The rest works as in the example. Then you can add date columns for the TupleFilter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this isn't in the typings. This has to be made fail safe by additional coding, of course.&lt;/P&gt;&lt;P&gt;If somebody has a better solution to this I would be glad to hear about it.&lt;/P&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>Tue, 27 Jun 2023 08:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-applyJsonFilters-on-a-Date-Hierarchy/m-p/3303854#M7719</guid>
      <dc:creator>JonasV</dc:creator>
      <dc:date>2023-06-27T08:07:24Z</dc:date>
    </item>
  </channel>
</rss>

