<?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: Every month 1st week wednesday data should reflect in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2839081#M90675</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to create a calculated column that suits your business requirement is to author a calculated column like below inside the calendar table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Month-Year CC = 
VAR _currentcalendarmonthyear = 'Calendar'[End of Month]
VAR _startingwednesday =
    MINX (
        FILTER (
            'Calendar',
            'Calendar'[End of Month] = _currentcalendarmonthyear
                &amp;amp;&amp;amp; 'Calendar'[Day Name] = "Wednesday"
        ),
        'Calendar'[Date]
    )
RETURN
    IF (
        'Calendar'[Date] &amp;gt;= _startingwednesday,
        'Calendar'[Month-Year],
        FORMAT('Calendar'[Start of Week], "mmm-yyyy")
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 09:07:46 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-10-13T09:07:46Z</dc:date>
    <item>
      <title>Every month 1st week wednesday data should reflect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2838796#M90662</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1st week (wednesday) of Every month data should reflect last months data. For eg: First week is October 5th( wednesday) and the data should reflect last month september data. Till October 4th it should show August data only. The same should be applied for entire year. Can anyone help me with the DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 07:51:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2838796#M90662</guid>
      <dc:creator>Saipreethi</dc:creator>
      <dc:date>2022-10-13T07:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Every month 1st week wednesday data should reflect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2838958#M90670</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="384479" data-lia-user-login="Saipreethi" class="lia-mention lia-mention-user"&gt;Saipreethi&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Assuming this based on today and you need full month data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var _mo = eomonth(today(), -1) +1&lt;/P&gt;
&lt;P&gt;var _wed = _mo - Weekday(_mo,2) +3&lt;/P&gt;
&lt;P&gt;var _final = if(_web&amp;lt;_mo, _wed +7, _wed)&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(day(_wed) &amp;lt;5, calculate(Sum(Table[Value]), filter(Table, Eomonth(Table[Date],0)&amp;nbsp; =eomonth(today(), -2)) ),&lt;/P&gt;
&lt;P&gt;calculate(Sum(Table[Value]), filter(Table, Eomonth(Table[Date],0)&amp;nbsp; =eomonth(today(), -1)) ) )&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 08:36:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2838958#M90670</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-13T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Every month 1st week wednesday data should reflect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2839081#M90675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to create a calculated column that suits your business requirement is to author a calculated column like below inside the calendar table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Month-Year CC = 
VAR _currentcalendarmonthyear = 'Calendar'[End of Month]
VAR _startingwednesday =
    MINX (
        FILTER (
            'Calendar',
            'Calendar'[End of Month] = _currentcalendarmonthyear
                &amp;amp;&amp;amp; 'Calendar'[Day Name] = "Wednesday"
        ),
        'Calendar'[Date]
    )
RETURN
    IF (
        'Calendar'[Date] &amp;gt;= _startingwednesday,
        'Calendar'[Month-Year],
        FORMAT('Calendar'[Start of Week], "mmm-yyyy")
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Every-month-1st-week-wednesday-data-should-reflect/m-p/2839081#M90675</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-10-13T09:07:46Z</dc:date>
    </item>
  </channel>
</rss>

