<?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: Qlik Weekstart function into DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2490024#M68522</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DueInWeeks =
VAR WeekStart =
    TODAY () - WEEKDAY ( TODAY (), 3 )
VAR Condition_ =
    ReportingCommitments[RPT_RequiredDate] &amp;gt;= TODAY ()
        &amp;amp;&amp;amp; ReportingCommitments[RPT_StatusId] &amp;lt;&amp;gt; 60
RETURN
    IF (
        Condition_
            &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;lt;= ( WeekStart + 98 ),
        "Due in 1-16 Weeks",
        IF (
            Condition_
                &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;gt; ( WeekStart + 98 ),
            "Due in more than 16 weeks",
            ""
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result 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;Also, attach the pbix file as reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 05:59:56 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2022-05-03T05:59:56Z</dc:date>
    <item>
      <title>Qlik Weekstart function into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2479535#M67815</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a qlik expression and I need to convert it into equivalent DAX.But there is no Weekstart dax available in PBI Desktop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(ReportingCommitments[RPT_RequiredDate] &amp;gt;= Today() &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;lt;= Weekstart(Today()) + 98 &amp;amp;&amp;amp; ReportingCommitments[RPT_StatusId] &amp;lt;&amp;gt; 60, "Due in 1-16 Weeks",&lt;BR /&gt;if(ReportingCommitments[RPT_RequiredDate] &amp;gt;= Today() &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;gt; weekstart(Today()) + 98 &amp;amp;&amp;amp; ReportingCommitments[RPT_StatusId] &amp;lt;&amp;gt; 60, "Due in more than 16 weeks",""&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2479535#M67815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T06:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Weekstart function into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2480188#M67842</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Monday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1&lt;BR /&gt;Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any Weekday Week - Start From Any day of Week &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power query&lt;/P&gt;
&lt;P&gt;Date.StartOfWeek and Date.EndOfWeek: &lt;A href="https://www.youtube.com/watch?v=8HNicSedIds&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=104" target="_blank"&gt;https://www.youtube.com/watch?v=8HNicSedIds&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=104&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 10:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2480188#M67842</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-27T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Weekstart function into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2490024#M68522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DueInWeeks =
VAR WeekStart =
    TODAY () - WEEKDAY ( TODAY (), 3 )
VAR Condition_ =
    ReportingCommitments[RPT_RequiredDate] &amp;gt;= TODAY ()
        &amp;amp;&amp;amp; ReportingCommitments[RPT_StatusId] &amp;lt;&amp;gt; 60
RETURN
    IF (
        Condition_
            &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;lt;= ( WeekStart + 98 ),
        "Due in 1-16 Weeks",
        IF (
            Condition_
                &amp;amp;&amp;amp; ReportingCommitments[RPT_RequiredDate] &amp;gt; ( WeekStart + 98 ),
            "Due in more than 16 weeks",
            ""
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result 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;Also, attach the pbix file as reference. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 05:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Qlik-Weekstart-function-into-DAX/m-p/2490024#M68522</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-05-03T05:59:56Z</dc:date>
    </item>
  </channel>
</rss>

