<?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 Simple Measure to always show current weeks data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299924#M123047</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to PBI and I've not been able to find the answer I want. It seems fairly straightforward but everything seems to be a variation of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would just like to create a 100% stacked visual, that filters on whatever the current week number is. I believe I can use a measure to create this filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a calendar table in Excel that uses ISOWEEKNUM to generate the week number. My table looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 13:54:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-23T13:54:04Z</dc:date>
    <item>
      <title>Simple Measure to always show current weeks data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299924#M123047</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to PBI and I've not been able to find the answer I want. It seems fairly straightforward but everything seems to be a variation of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would just like to create a 100% stacked visual, that filters on whatever the current week number is. I believe I can use a measure to create this filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a calendar table in Excel that uses ISOWEEKNUM to generate the week number. My table looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 13:54:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299924#M123047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-23T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Measure to always show current weeks data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299958#M123050</link>
      <description>&lt;P&gt;I think I have found the solution I was after. I created a new column on my Date Table and used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Current Week = WEEKNUM([Date],2) = WEEKNUM(TODAY(),2)&lt;/LI-CODE&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;Which returned a TRUE/FALSE value. I can now filter on True.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:19:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299958#M123050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-23T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Measure to always show current weeks data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299963#M123052</link>
      <description>&lt;P&gt;Ah actually not quite, it returns the week number for all years, not just current year.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3299963#M123052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-23T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Measure to always show current weeks data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3301806#M123195</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;I think you can try code as below to create a new calculated column and filter on True.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Current Year Week =
YEAR ( [Date] ) * 100
    + WEEKNUM ( [Date], 2 )
    = YEAR ( TODAY () ) * 100
        + WEEKNUM ( TODAY (), 2 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 07:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Measure-to-always-show-current-weeks-data/m-p/3301806#M123195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-26T07:33:35Z</dc:date>
    </item>
  </channel>
</rss>

