<?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 How to apply multiple Date Range Filter in embedded Javascript in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-apply-multiple-Date-Range-Filter-in-embedded-Javascript/m-p/762723#M20308</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to apply two date filter like&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;defaultFunnelDateFilter OR defaultFunnelDateFilter1&lt;/PRE&gt;&lt;P&gt;How can I filter based both date range? Is there any keyword to add &lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;condition between two Date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var defaultFunnelDateFilter = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Funnel",
                column: "DateCreated"
            },
            logicalOperator: "And",
            conditions: [
                {
                    operator: "GreaterThanOrEqual",
                    value: window.sd
                },
                {
                    operator: "LessThanOrEqual",
                    value: window.ed
                }
            ]
        }

        var defaultFunnelDateFilter1 = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Funnel",
                column: "DateCreated"
            },
            logicalOperator: "And",
            conditions: [
                {
                    operator: "GreaterThanOrEqual",
                    value: "1999-12-31T00:00:00.000Z"
                },
                {
                    operator: "LessThanOrEqual",
                    value: "2000-01-02T00:00:00.000Z"
                }
            ]
        }

        var defaultClientFilter = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Leads",
                column: "ClientCode"
            },
            operator: "In",
            values: window.selectedClient
        };&lt;/PRE&gt;&lt;P&gt;and in in the config, I am doing like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var config = {
                        type: 'report',
                        tokenType: models.TokenType.Embed,
                        accessToken: EmbedConfig.EmbedToken.Token,
                        embedUrl: txtEmbedUrl,
                        id: txtEmbedReportId,
                        permissions: permissions,
                        viewMode: viewMode,
                        filters: [ defaultFunnelDateFilter1,   defaultFunnelDateFilter , defaultClientFilter ],
                        settings: {
                            filterPaneEnabled: false,
                            navContentPaneEnabled: false
                        }
                    };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 09:28:49 GMT</pubDate>
    <dc:creator>jobrock</dc:creator>
    <dc:date>2019-08-09T09:28:49Z</dc:date>
    <item>
      <title>How to apply multiple Date Range Filter in embedded Javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-apply-multiple-Date-Range-Filter-in-embedded-Javascript/m-p/762723#M20308</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to apply two date filter like&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;defaultFunnelDateFilter OR defaultFunnelDateFilter1&lt;/PRE&gt;&lt;P&gt;How can I filter based both date range? Is there any keyword to add &lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;condition between two Date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var defaultFunnelDateFilter = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Funnel",
                column: "DateCreated"
            },
            logicalOperator: "And",
            conditions: [
                {
                    operator: "GreaterThanOrEqual",
                    value: window.sd
                },
                {
                    operator: "LessThanOrEqual",
                    value: window.ed
                }
            ]
        }

        var defaultFunnelDateFilter1 = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Funnel",
                column: "DateCreated"
            },
            logicalOperator: "And",
            conditions: [
                {
                    operator: "GreaterThanOrEqual",
                    value: "1999-12-31T00:00:00.000Z"
                },
                {
                    operator: "LessThanOrEqual",
                    value: "2000-01-02T00:00:00.000Z"
                }
            ]
        }

        var defaultClientFilter = {
            $schema: "http://powerbi.com/product/schema#advanced",
            target: {
                table: "tbl_Leads",
                column: "ClientCode"
            },
            operator: "In",
            values: window.selectedClient
        };&lt;/PRE&gt;&lt;P&gt;and in in the config, I am doing like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var config = {
                        type: 'report',
                        tokenType: models.TokenType.Embed,
                        accessToken: EmbedConfig.EmbedToken.Token,
                        embedUrl: txtEmbedUrl,
                        id: txtEmbedReportId,
                        permissions: permissions,
                        viewMode: viewMode,
                        filters: [ defaultFunnelDateFilter1,   defaultFunnelDateFilter , defaultClientFilter ],
                        settings: {
                            filterPaneEnabled: false,
                            navContentPaneEnabled: false
                        }
                    };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-apply-multiple-Date-Range-Filter-in-embedded-Javascript/m-p/762723#M20308</guid>
      <dc:creator>jobrock</dc:creator>
      <dc:date>2019-08-09T09:28:49Z</dc:date>
    </item>
  </channel>
</rss>

