<?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: Dax formula - do not show the last two weeks in visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3690407#M143404</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this measure and put it in the values of the visual. But I still see all weeks.&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 09:31:33 GMT</pubDate>
    <dc:creator>M_MELLEMA</dc:creator>
    <dc:date>2024-02-09T09:31:33Z</dc:date>
    <item>
      <title>Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3675302#M142661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visual with weeks and hours:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't want to show the last two weeks in the visual. So in this case I only want to see week 1,2,3 not week 4 and 5.&lt;/P&gt;&lt;P&gt;weeknr is a created column:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've tried a couple things but I'm not an experted to DAX. So I hope someone can help me.&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>Fri, 02 Feb 2024 10:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3675302#M142661</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-02T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3678181#M142812</link>
      <description>&lt;P&gt;I recommend you use an externally sourced calendar table that already has the week numbers prepopulated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure filter that excludes dates greater than TODAY()-14 .&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 01:39:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3678181#M142812</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-04T01:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3679023#M142854</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="427013" data-lia-user-login="M_MELLEMA" class="lia-mention lia-mention-user"&gt;M_MELLEMA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1.you can create a measure value by writing the following expression.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(MAX('Table'[weeknr]) &amp;lt; 4,MAX('Table'[value]),BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;2.The result obtained is shown below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can also choose not to use measure. You can do this by going to filters on the right hand side of the report, selecting the weeknr column you want to change, making the value less than or equal to 3, and then selecting Apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can also change the Filter type to Top N, drag the data to be filtered into By value, and select Apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&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, 05 Feb 2024 02:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3679023#M142854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-05T02:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680263#M142907</link>
      <description>&lt;P&gt;Hi Clara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filter is working, but I want it dynamically.&amp;nbsp;&amp;nbsp;Whatever week it is, I don't want to see the last 2 weeks.&lt;/P&gt;&lt;P&gt;Let's say it's week 10, then I don't want to see weeks 9 and 10. Let's say it's week 14, then I don't want to see weeks 12 and 13.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;that's working to, but is also not dynamically.&amp;nbsp; How can I make it dynamically?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 12:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680263#M142907</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-05T12:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680326#M142908</link>
      <description>&lt;P&gt;How would that work in the first week of the new year?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need a "YearWeek" number,&amp;nbsp; and this is where stuff gets weird very fast. Weeks are incompatible with years and months.&amp;nbsp; Your only true solution is an external reference table where YOU define what the week number is for each day of each year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- grab TODAY()'s yearweek number&lt;/P&gt;
&lt;P&gt;- find all yearweek numbers smaller than that, sort descending&lt;/P&gt;
&lt;P&gt;- chop off the TOPN2&lt;/P&gt;
&lt;P&gt;- use the rest as filter.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680326#M142908</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-05T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680453#M142917</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm using a referencedb already:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:09:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680453#M142917</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-05T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680511#M142919</link>
      <description>I don't see a yearweek number column.</description>
      <pubDate>Mon, 05 Feb 2024 14:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680511#M142919</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-05T14:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680542#M142922</link>
      <description>&lt;P&gt;You're right. This are the field that are available in our referencedb:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I can create a new column year-weeknumber.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680542#M142922</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-05T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680626#M142929</link>
      <description>&lt;P&gt;yes, that is my recommendation.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 15:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3680626#M142929</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-05T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3682036#M142999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="427013" data-lia-user-login="M_MELLEMA" class="lia-mention lia-mention-user"&gt;M_MELLEMA&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can try changing the previous metric to something like the following, which will dynamically remove the last two weeks.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR max_week = CALCULATE(MAX('Table'[weeknr]),ALL('Table'))
return
IF(MAX('Table'[weeknr]) &amp;lt;= max_week - 2,MAX('Table'[value]),BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&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;</description>
      <pubDate>Tue, 06 Feb 2024 06:30:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3682036#M142999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-06T06:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3690407#M143404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this measure and put it in the values of the visual. But I still see all weeks.&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 09:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3690407#M143404</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-09T09:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698863#M143862</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Add a column Currentweek = WEEKNUM(today())&lt;/P&gt;&lt;P&gt;Add another column Notlasttwoweeks =&amp;nbsp;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;((&lt;/SPAN&gt;&lt;SPAN&gt;Datumtabel&lt;/SPAN&gt;&lt;SPAN&gt;[Huidige_week]&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;Datumtabel&lt;/SPAN&gt;&lt;SPAN&gt;[weeknr]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Put the column&amp;nbsp;Notlasttwoweeks in the filter of the visual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 13:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698863#M143862</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-14T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698887#M143865</link>
      <description>&lt;P&gt;That won't work in the first two weeks of January.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 13:48:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698887#M143865</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-14T13:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698906#M143868</link>
      <description>&lt;P&gt;I think that when it's week 1 or week 2, the user doesn't see any results. But I have a button that will show all weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What do you suggest?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 14:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698906#M143868</guid>
      <dc:creator>M_MELLEMA</dc:creator>
      <dc:date>2024-02-14T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula - do not show the last two weeks in visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698951#M143869</link>
      <description>&lt;P&gt;Use YearWeek instead of Week number, and then TOPN(2) over all yearweeks that are smaller than the current value.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 14:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-do-not-show-the-last-two-weeks-in-visual/m-p/3698951#M143869</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-14T14:21:30Z</dc:date>
    </item>
  </channel>
</rss>

