<?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: Parameter from dynamic value? in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171551#M38121</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="84144" data-lia-user-login="richard-powerbi" class="lia-mention lia-mention-user"&gt;richard-powerbi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on your link:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date.AddDays(DateTime.LocalNow(), -1) meta [IsParameterQuery=true, Type="DateTime", IsParameterQueryRequired=true]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And test:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Lcy5EYBAEMTAXNbGQMDxxLJ1+acBNcJpT+qutebSRdziHo844hmveMfH6o+tMcceB3jABT5wwneZLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", Int64.Type}}),
    Test = Table.AddColumn(#"Changed Type", "Test", each DateTime.Date(Date.AddMonths(RangeEnd, -[Column1])), type date),
    #"Filtered Rows" = Table.SelectRows(Test, each [Test] &amp;gt; DateTime.Date(RangeStart) and [Test] &amp;lt;= DateTime.Date(RangeEnd))
in
    #"Filtered Rows"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 15:36:55 GMT</pubDate>
    <dc:creator>Smauro</dc:creator>
    <dc:date>2020-06-19T15:36:55Z</dc:date>
    <item>
      <title>Parameter from dynamic value?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171523#M38119</link>
      <description>&lt;P&gt;For &lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/service-premium-incremental-refresh" target="_self"&gt;incremental refresh&lt;/A&gt; I want to make a parameter called&amp;nbsp;RangeEnd that takes yesterday's date. I thought I could use a list query Date.AddDays(DateTime.LocalNow(), -1) to make this parameter dynamic. But I can't get it to work. &lt;A href="https://www.excelguru.ca/blog/2018/05/30/creating-dynamic-parameters-in-power-query/#:~:text=The%20Convert%20to%20Parameter%20function&amp;amp;text=You%27d%20then%20be%20able,this%20option%20is%20greyed%20out." target="_self"&gt;Here&lt;/A&gt; it says dynamic parameters are not possible. Is this still true? Does anyone know a way around this?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:04:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171523#M38119</guid>
      <dc:creator>richard-powerbi</dc:creator>
      <dc:date>2020-06-19T15:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter from dynamic value?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171551#M38121</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="84144" data-lia-user-login="richard-powerbi" class="lia-mention lia-mention-user"&gt;richard-powerbi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on your link:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date.AddDays(DateTime.LocalNow(), -1) meta [IsParameterQuery=true, Type="DateTime", IsParameterQueryRequired=true]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And test:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Lcy5EYBAEMTAXNbGQMDxxLJ1+acBNcJpT+qutebSRdziHo844hmveMfH6o+tMcceB3jABT5wwneZLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", Int64.Type}}),
    Test = Table.AddColumn(#"Changed Type", "Test", each DateTime.Date(Date.AddMonths(RangeEnd, -[Column1])), type date),
    #"Filtered Rows" = Table.SelectRows(Test, each [Test] &amp;gt; DateTime.Date(RangeStart) and [Test] &amp;lt;= DateTime.Date(RangeEnd))
in
    #"Filtered Rows"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171551#M38121</guid>
      <dc:creator>Smauro</dc:creator>
      <dc:date>2020-06-19T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter from dynamic value?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171596#M38123</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="45722" data-lia-user-login="Smauro" class="lia-mention lia-mention-user"&gt;Smauro&lt;/a&gt;&amp;nbsp;So I understand it correctly that the only trick you did was add the code below?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;meta [IsParameterQuery=true, Type="DateTime", IsParameterQueryRequired=true]&lt;/LI-CODE&gt;&lt;P&gt;Ahhh so it's this trick:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.excelguru.ca/blog/2018/05/30/creating-dynamic-parameters-in-power-query/" target="_blank"&gt;https://www.excelguru.ca/blog/2018/05/30/creating-dynamic-parameters-in-power-query/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 16:38:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Parameter-from-dynamic-value/m-p/1171596#M38123</guid>
      <dc:creator>richard-powerbi</dc:creator>
      <dc:date>2020-06-19T16:38:28Z</dc:date>
    </item>
  </channel>
</rss>

