<?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: Dynamically set slicers Value in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1867162#M29632</link>
    <description>&lt;P&gt;&lt;EM&gt;"Whether your report exist the data from year 2021 -&lt;STRONG&gt;YES?&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And how does 2021 input by the user- "&lt;STRONG&gt;User Run&amp;nbsp; SP and sp updated this flag in the YearTable"&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I uploaded snaphot of "Current Status" Vs Expected Status - Again i tell you the scenario -&lt;/P&gt;&lt;P&gt;I saved my report with Current Year 2020 since the flag value is 1 for this year - now in Jan-2021 sp run and update this "Flag" value to 1 -- I want my report to be open dynamically in 2021 based in Flag value is now 1 - however at the momvemt if i open the report it displays the value 2021 but bydefault opens in 2020 and then manully i have to change the Year value in slicer , and again upload the report to server , so that next time it open in 2021 .... I want this to dyncmiaclly open in 2021.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you provide me your id i can send you sample file as well.&amp;nbsp;&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parihar26_1-1622108778708.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/522717iEB61546522B9CC5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Parihar26_1-1622108778708.png" alt="Parihar26_1-1622108778708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parihar26_0-1622108734681.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/522714iAEFE84DC6D832230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Parihar26_0-1622108734681.png" alt="Parihar26_0-1622108734681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 09:53:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-27T09:53:35Z</dc:date>
    <item>
      <title>Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1853793#M29506</link>
      <description>&lt;P class="lia-align-left"&gt;Hello Team,&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Hi Friends&lt;/P&gt;&lt;P class="lia-align-left"&gt;I have a simple requrement of dynamically loading current year value.&lt;/P&gt;&lt;P class="lia-align-left"&gt;So I have a Year table from which my slicer take current Yr value.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Let say I saved and upload my report with the Year 2020 , now I am in Jan-2021 and I want my report to be open in 2021 Year value default.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Please provide some solution for this.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Thanks for your help.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/54293"&gt;@v-yuta-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/260093" target="_blank"&gt;@FruitandVeg&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 09:56:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1853793#M29506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-20T09:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1859202#M29548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following video to achieve it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JlVHsZUk1nc" target="_self"&gt;&lt;STRONG&gt;Set Default Slicer Selection to Current Year or Month in Power BI&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the following thread to get the data for current year without using slicer.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Current-Year-Sales/m-p/597714" target="_self"&gt;&lt;STRONG&gt;Current Year Sales&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 04:53:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1859202#M29548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-24T04:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1864640#M29608</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case requirement is simple.&amp;nbsp; I have simple Date table where "flag" is updated based on some user input which is once in Year. Once my flag is set to 1 i want my report to be open dynamically in 2021 ( which is saved and deployed as 2020 last year) , simple ...I dont have any month or other column&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; &amp;nbsp; &amp;nbsp;Flag&lt;/P&gt;&lt;P&gt;2019&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2020&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2021&amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired result&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; &amp;nbsp; &amp;nbsp;Flag&lt;/P&gt;&lt;P&gt;2019&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2020&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2021&amp;nbsp; &amp;nbsp; &amp;nbsp;1 - along with when open the report it should open in 2021&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:46:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1864640#M29608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1866111#M29618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Whether your report exist the data from year 2021? And how does 2021 input by the user? By slicer, filter or other method? Could you please provide some sample data and your expected result with specific examples? Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=lkHFpmA4SJ4" target="_self"&gt;&lt;STRONG&gt;Dynamically Filter By Today's Date&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 02:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1866111#M29618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-27T02:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1867162#M29632</link>
      <description>&lt;P&gt;&lt;EM&gt;"Whether your report exist the data from year 2021 -&lt;STRONG&gt;YES?&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And how does 2021 input by the user- "&lt;STRONG&gt;User Run&amp;nbsp; SP and sp updated this flag in the YearTable"&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I uploaded snaphot of "Current Status" Vs Expected Status - Again i tell you the scenario -&lt;/P&gt;&lt;P&gt;I saved my report with Current Year 2020 since the flag value is 1 for this year - now in Jan-2021 sp run and update this "Flag" value to 1 -- I want my report to be open dynamically in 2021 based in Flag value is now 1 - however at the momvemt if i open the report it displays the value 2021 but bydefault opens in 2020 and then manully i have to change the Year value in slicer , and again upload the report to server , so that next time it open in 2021 .... I want this to dyncmiaclly open in 2021.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you provide me your id i can send you sample file as well.&amp;nbsp;&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parihar26_1-1622108778708.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/522717iEB61546522B9CC5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Parihar26_1-1622108778708.png" alt="Parihar26_1-1622108778708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parihar26_0-1622108734681.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/522714iAEFE84DC6D832230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Parihar26_0-1622108734681.png" alt="Parihar26_0-1622108734681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1867162#M29632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-27T09:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically set slicers Value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1872445#M29688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;I created a sample pbix file for you, please check whether that is what you want.&lt;/P&gt;
&lt;P&gt;1. Connect to the excel file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1622448906959.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/524336iAB79B2ECA8C32467/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1622448906959.png" alt="yingyinr_0-1622448906959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_2-1622449147969.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/524347i53FFDE797601B4BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yingyinr_2-1622449147969.png" alt="yingyinr_2-1622449147969.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create a custom column in Power Query Editor&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Excel.Workbook(File.Contents("D:\data\sales.xlsx"), null, true),
    Table1_Table = Source{[Item="Table1",Kind="Table"]}[Data],
     #"Added Custom" = Table.AddColumn(Table1_Table, "Custom", each if [Year]=List.Max(Table1_Table[Year]) then "Default" else [Year])
in
    #"Added Custom"&lt;/LI-CODE&gt;
&lt;P&gt;3. Create a slicer with new custom column and select the option "Default"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_1-1622449087906.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/524344i5AF735AA1F761AB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_1-1622449087906.png" alt="yingyinr_1-1622449087906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:20:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-set-slicers-Value/m-p/1872445#M29688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T08:20:09Z</dc:date>
    </item>
  </channel>
</rss>

