<?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 help with IF statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2965153#M98922</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The conversion for your “&lt;/SPAN&gt;=If(DayNumberOfWeek([Applydate])&amp;lt;&amp;gt;7;RelativeDate([Applydate];(1-DayNumberOfWeek([Applydate]))+6);[Applydate])&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt; expression in DAX expression will be as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ConvertedDate = If(WEEKDAY([Applydate])&amp;lt;&amp;gt;7, DATEADD([Applydate], (1-WEEKDAY([Applydate]))+6,DAY), [Applydate])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below screenshot for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Services&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop and email at &lt;A href="mailto:crm@inogic.com" target="_blank" rel="noopener"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank" rel="noopener"&gt;http://www.inogic.com/services/&lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank" rel="noopener"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 11:49:38 GMT</pubDate>
    <dc:creator>SamInogic</dc:creator>
    <dc:date>2022-12-13T11:49:38Z</dc:date>
    <item>
      <title>DAX help with IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2964025#M98846</link>
      <description>&lt;P&gt;Experts, please help me to convert the below SAP BI syntax in DAX.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If(DayNumberOfWeek([Applydate])&amp;lt;&amp;gt;7;RelativeDate([Applydate];(1-DayNumberOfWeek([Applydate]))+6);[Applydate])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 03:31:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2964025#M98846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-13T03:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help with IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2964109#M98850</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , what are you trying to do there. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case you need week start or end date&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;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;BR /&gt;&lt;A href="https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e6f593958" target="_blank"&gt;https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e6f593958&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The information you have provided is not making the problem clear to me. Can you please explain with an example. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate your Kudos.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 04:47:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2964109#M98850</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-13T04:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help with IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2965153#M98922</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The conversion for your “&lt;/SPAN&gt;=If(DayNumberOfWeek([Applydate])&amp;lt;&amp;gt;7;RelativeDate([Applydate];(1-DayNumberOfWeek([Applydate]))+6);[Applydate])&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt; expression in DAX expression will be as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ConvertedDate = If(WEEKDAY([Applydate])&amp;lt;&amp;gt;7, DATEADD([Applydate], (1-WEEKDAY([Applydate]))+6,DAY), [Applydate])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below screenshot for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Services&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop and email at &lt;A href="mailto:crm@inogic.com" target="_blank" rel="noopener"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank" rel="noopener"&gt;http://www.inogic.com/services/&lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank" rel="noopener"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 11:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2965153#M98922</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2022-12-13T11:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help with IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2966101#M99001</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480849" data-lia-user-login="SamInogic" class="lia-mention lia-mention-user"&gt;SamInogic&lt;/a&gt;&amp;nbsp;for your perfect DAX code, need to learn from you guys.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; for your quick response, I always tag your name when I struck in DAX and you help me couple of times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again both of you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480849" data-lia-user-login="SamInogic" class="lia-mention lia-mention-user"&gt;SamInogic&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 18:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-IF-statement/m-p/2966101#M99001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-13T18:18:50Z</dc:date>
    </item>
  </channel>
</rss>

