<?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: Slicer weekly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926513#M9413</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the below Dax formula to make new &lt;STRONG&gt;MEASURE&amp;nbsp;&lt;/STRONG&gt;to calculate last week sale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lastWeek_Sales =
VAR WeekNum_LastWeek =
    WEEKNUM ( TODAY () ) - 1
RETURN
    CALCULATE (
        SUM ( 'table'[Sale] ),
        WEEKNUM ( 'Table'[Date] ) = WeekNum_LastWeek
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use this measure too show last week count when this week filter is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution.&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;Regards,&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;Gaurav Raj Singh&amp;nbsp;&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;LinkedIN :&amp;nbsp;&lt;A href="https://www.linkedin.com/in/gauravrajsingh/" target="_blank"&gt;https://www.linkedin.com/in/gauravrajsingh/&lt;/A&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 04:25:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-10T04:25:04Z</dc:date>
    <item>
      <title>Slicer weekly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926436#M9408</link>
      <description>&lt;P&gt;Hello, everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created weekly coin sales and showing this week and previous week coin sales. Now to see both week, we need to click two weeks in a slicer part.&lt;/P&gt;&lt;P&gt;But my customer wants to click just once on a filter choosing just one week, previous week appear automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any method to click just one and see with previous week cooin sales as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 02:33:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926436#M9408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-10T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer weekly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926444#M9409</link>
      <description>Make a disconnected date table and use it in slicer.&lt;BR /&gt;Create weeknum column in your main table and date table.&lt;BR /&gt;And then create two seperate measures of this week and previous week and use it in your table visual.&lt;BR /&gt;&lt;BR /&gt;This week sales count=Calculate(count([table,[col]),filter(table,table[weeknum]= min(date[weeknum])))&lt;BR /&gt;Similarly create for previous week by simply adding -1 at the end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pravin</description>
      <pubDate>Mon, 10 Feb 2020 02:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926444#M9409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-10T02:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer weekly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926513#M9413</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the below Dax formula to make new &lt;STRONG&gt;MEASURE&amp;nbsp;&lt;/STRONG&gt;to calculate last week sale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lastWeek_Sales =
VAR WeekNum_LastWeek =
    WEEKNUM ( TODAY () ) - 1
RETURN
    CALCULATE (
        SUM ( 'table'[Sale] ),
        WEEKNUM ( 'Table'[Date] ) = WeekNum_LastWeek
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use this measure too show last week count when this week filter is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution.&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;Regards,&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;Gaurav Raj Singh&amp;nbsp;&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;LinkedIN :&amp;nbsp;&lt;A href="https://www.linkedin.com/in/gauravrajsingh/" target="_blank"&gt;https://www.linkedin.com/in/gauravrajsingh/&lt;/A&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 04:25:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-weekly/m-p/926513#M9413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-10T04:25:04Z</dc:date>
    </item>
  </channel>
</rss>

