<?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: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137820#M4749</link>
    <description>&lt;P&gt;Thanks for reaching out and replying.&lt;/P&gt;&lt;P&gt;I was trying point 1, applying the condition in the Let Clause and i am getting the following error&lt;/P&gt;&lt;P&gt;"this database function does not support the query option", &amp;nbsp;can you point me in the direction of some link material or sample query for this&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 08:53:04 GMT</pubDate>
    <dc:creator>BharatRedz711</dc:creator>
    <dc:date>2017-03-07T08:53:04Z</dc:date>
    <item>
      <title>Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137200#M4718</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am currently building a dashboard using Azure SQL as the DB and using Direct Query mode for visualization.&lt;/P&gt;&lt;P&gt;The DB stores Web Analytics information.&lt;/P&gt;&lt;P&gt;The count of records for some of the facts have &amp;nbsp;~10million and upwards, the column list though is not much maximum metrics and dimensions being 20.&lt;/P&gt;&lt;P&gt;Is there a way i can perform the following operations to improve the performance of the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Define a default Date parameter to restrict Web Analytics information being retrieved when the dashboard loads.&lt;/P&gt;&lt;P&gt;2. Override this default parameter with a user selection ? The Date Filter is chiclet slicer visualization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help and feedback&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 10:52:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137200#M4718</guid>
      <dc:creator>BharatRedz711</dc:creator>
      <dc:date>2017-03-06T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137637#M4736</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14748"&gt;@BharatRedz711&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I am currently building a dashboard using Azure SQL as the DB and using Direct Query mode for visualization.&lt;/P&gt;
&lt;P&gt;The DB stores Web Analytics information.&lt;/P&gt;
&lt;P&gt;The count of records for some of the facts have &amp;nbsp;~10million and upwards, the column list though is not much maximum metrics and dimensions being 20.&lt;/P&gt;
&lt;P&gt;Is there a way i can perform the following operations to improve the performance of the dashboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Define a default Date parameter to restrict Web Analytics information being retrieved when the dashboard loads.&lt;/P&gt;
&lt;P&gt;2. Override this default parameter with a user selection ? The Date Filter is chiclet slicer visualization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help and feedback&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1.Yes, you can do this by specifying a specfic query with where clause to retrive data, apply the date after where.&lt;/P&gt;
&lt;P&gt;2.No Override, the slicer would send a query which is filtered based on the query of Option 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 02:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137637#M4736</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-07T02:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137820#M4749</link>
      <description>&lt;P&gt;Thanks for reaching out and replying.&lt;/P&gt;&lt;P&gt;I was trying point 1, applying the condition in the Let Clause and i am getting the following error&lt;/P&gt;&lt;P&gt;"this database function does not support the query option", &amp;nbsp;can you point me in the direction of some link material or sample query for this&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 08:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137820#M4749</guid>
      <dc:creator>BharatRedz711</dc:creator>
      <dc:date>2017-03-07T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137826#M4750</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14748"&gt;@BharatRedz711&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Could you post your power query. I don't mention any thing specific but pure SQL in point 1, say some SQL like &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT column1,column2 FROM table WHERE col1=xxx&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2017 08:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137826#M4750</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-07T08:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137827#M4751</link>
      <description>&lt;P&gt;Query that i updated in Advanced Editor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Sql.Databases("server",&lt;BR /&gt;[Query="SELECT [S1_DATE]#(lf) ,[S1_MONTH]#(lf) ,[Keyword]#(lf) ,[Users]#(lf) ,[New Users]#(lf) ,[New Sessions Percent]#(lf) ,[Sessions]#(lf) ,[Bounce Rate]#(lf) ,[Session Duration]#(lf) ,[Unique Pageviews]#(lf) ,[Cancelled Sessions]#(lf)&lt;/P&gt;&lt;P&gt;FROM [DWA].[F_googleSessionInformation]"]),&lt;BR /&gt;database&amp;nbsp;= Source{[Name="Instance"]}[Data],&lt;BR /&gt;#"DWA_F_googleSessionInformation" = Database{[Schema="DWA",Item="F_googleSessionInformation"]}[Data],&lt;BR /&gt;#"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"New User Sessions"}),&lt;BR /&gt;#"Renamed Columns1" = Table.RenameColumns(#"Removed Columns",{{"New Users", "New Users"}}),&lt;BR /&gt;#"Renamed Columns3" = Table.SelectRows(Source, each([S1_Date] &amp;gt; " &amp;amp; defaultDate &amp;amp; " ))&lt;BR /&gt;in&lt;BR /&gt;#"Renamed Columns2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S1_Date is the date column and defaultDate is my parameter variable&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 08:58:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137827#M4751</guid>
      <dc:creator>BharatRedz711</dc:creator>
      <dc:date>2017-03-07T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137846#M4752</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14748"&gt;@BharatRedz711&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try to filter in SQL&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;let
    Source = Sql.Database("ericvm2", "testdb", [Query="select S1_DATE, Users from F_googleSessionInformation where s1_date&amp;gt;'"&amp;amp;Date.ToText(defaultDate,"yyyyMMdd")&amp;amp;"'"])
in
    Source&lt;/PRE&gt;
&lt;P&gt;Or in Power Query&lt;/P&gt;
&lt;PRE&gt;let
    Source = Sql.Database("ericvm2", "testdb", [Query="select S1_DATE, Users from F_googleSessionInformation"]),
    filtered = Table.SelectRows(Source,&lt;STRONG&gt; each([S1_Date] &amp;gt;  defaultDate )&lt;/STRONG&gt;)
in
    Source&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 09:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137846#M4752</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-07T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL Direct Query Method: Default Filter to restrict Retrieved Data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137863#M4753</link>
      <description>&lt;P&gt;Thanks i applied the PowerQuery option and the solution works fine&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 09:36:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-SQL-Direct-Query-Method-Default-Filter-to-restrict/m-p/137863#M4753</guid>
      <dc:creator>BharatRedz711</dc:creator>
      <dc:date>2017-03-07T09:36:40Z</dc:date>
    </item>
  </channel>
</rss>

