<?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: Dyanmic Sales measure related to selected value from slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2702215#M81837</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423180" data-lia-user-login="King8James" class="lia-mention lia-mention-user"&gt;King8James&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can use switch and selectedvalue function to redirect to different calculation expressions based on current selected value.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=b52f0351-c430-43d2-8665-9bee835416c7&amp;amp;CommunityKey=3a98540b-3655-4795-b8cb-30dbeb93ba78&amp;amp;tab=digestviewer" target="_blank"&gt;My Favorite DAX Feature: SELECTEDVALUE with SWITCH | Winston-Salem Power BI User Group (pbiusergroup.com)&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 07:33:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-16T07:33:18Z</dc:date>
    <item>
      <title>Dyanmic Sales measure related to selected value from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2692634#M81119</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need a measure that gives the sales of selected scenario and adds preivous sales&amp;nbsp; i have created the folowing measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;New sales =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;forcast&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;scenario[Alternative]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;data[Alternative]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;"FIX"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; data[Alternative]= "Forecast"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;the issue i have is the overlap in month may june and july (it can change depending on the chosen scenario) how can i filter the duplicate value from fix so that i have all values from var 1 or var 2 (selected scenario) and the values that dosent exist from FIX like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;here the data source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Aug 2022 13:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2692634#M81119</guid>
      <dc:creator>King8James</dc:creator>
      <dc:date>2022-08-10T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmic Sales measure related to selected value from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2702215#M81837</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423180" data-lia-user-login="King8James" class="lia-mention lia-mention-user"&gt;King8James&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can use switch and selectedvalue function to redirect to different calculation expressions based on current selected value.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=b52f0351-c430-43d2-8665-9bee835416c7&amp;amp;CommunityKey=3a98540b-3655-4795-b8cb-30dbeb93ba78&amp;amp;tab=digestviewer" target="_blank"&gt;My Favorite DAX Feature: SELECTEDVALUE with SWITCH | Winston-Salem Power BI User Group (pbiusergroup.com)&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 07:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2702215#M81837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T07:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmic Sales measure related to selected value from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2703888#M81935</link>
      <description>&lt;P&gt;hey thanks for you reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issue i have is : i have to include the whole sales of the selected scenario for example if i choose var 1 sales start from may till january 2023 and fix should be the months before may (if&amp;nbsp; i choose var2&amp;nbsp; sales start from june 2022 till january 2023 and fix should be the months before june ) so the values of fix are&amp;nbsp; variable and depend on the chosen scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:20:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dyanmic-Sales-measure-related-to-selected-value-from-slicer/m-p/2703888#M81935</guid>
      <dc:creator>King8James</dc:creator>
      <dc:date>2022-08-16T16:20:34Z</dc:date>
    </item>
  </channel>
</rss>

