<?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 Creating a list between start date and end date to corresponding days of the week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031634#M45554</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following data.&amp;nbsp; I would like to create a list of dates between start and end dates. I have tried using a List but because I have the days of the week (attribute) listed as well as the corresponding time worked (value) , I get a list dates between the two dates, 7 times. What I need to see is the date against each week day that is between the start and end dates. I suppose basically something like a fill down or formula that adds 1 day increment to each row and then on the 8th row, it starts from that date and adds 1 day increments again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me out please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 08:39:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-23T08:39:55Z</dc:date>
    <item>
      <title>Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031634#M45554</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following data.&amp;nbsp; I would like to create a list of dates between start and end dates. I have tried using a List but because I have the days of the week (attribute) listed as well as the corresponding time worked (value) , I get a list dates between the two dates, 7 times. What I need to see is the date against each week day that is between the start and end dates. I suppose basically something like a fill down or formula that adds 1 day increment to each row and then on the 8th row, it starts from that date and adds 1 day increments again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me out please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 08:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031634#M45554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-23T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031724#M45559</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;You can follow below article. It helped me previously for same issue:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudfronts.com/how-to-list-all-dates-between-two-dates-in-powerbi-and-distribute-numbers-evenly-among-them/" target="_self"&gt;https://www.cloudfronts.com/how-to-list-all-dates-between-two-dates-in-powerbi-and-distribute-numbers-evenly-among-them/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 09:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031724#M45559</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-23T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031758#M45563</link>
      <description>&lt;P&gt;Thanks Samarth. I have tried this but it didn't work as I get 7 lots of 7 days in the new column. This is because I have 7 rows of the same start and end date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 09:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031758#M45563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-23T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031841#M45565</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Something like this , a new column in M&lt;/P&gt;
&lt;P&gt;List.Dates([Start Date], Duration.Days([End Date] - [Start Date]), #duration(1,0,0,0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List.Dates([Start Date], Duration.Days([End Date] - [Start Date])+1, #duration(1,0,0,0))&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 09:46:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2031841#M45565</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-23T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2033714#M45625</link>
      <description>&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;. I will give that a go.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2033714#M45625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-24T02:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2044673#M45928</link>
      <description>&lt;P&gt;That didn't work either&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;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt; This is what I got.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 22:56:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2044673#M45928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-29T22:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2045910#M45951</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/307777" target="_blank" rel="noopener"&gt;@KazL,&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please try this ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Just add the Ordinal value of [Attribute] to the [Start of Week]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;eg. &lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;Date.AddDays([Start of Week], List.PositionOf({"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},[Attribute]))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8s3PU9JRMtI3sNA3MjAyBLKBLBgnVidaKaQ0Fb+C8NQUAiZklOJX4FaUiV9BcGIJAQWlBHwB86ahIUjMAKIAxkH2Jk4FMG/iNgHqTZwKYN7EqQDmTdwKSvH5IhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Attribute = _t, #"Start of Week" = _t, #"Week Ending" = _t]),&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"Start of Week", type date}, {"Week Ending", type date}}),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#"&lt;FONT color="#000000"&gt;Added Week Day Number&lt;/FONT&gt;" = Table.AddColumn(#"Changed Type", "Week Day Number", each &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List.PositionOf({"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},[Attribute])&lt;/STRONG&gt;&lt;/FONT&gt;, Int64.Type),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#"&lt;FONT color="#000000"&gt;Added Date&lt;/FONT&gt;" = Table.AddColumn(#"Added Week Day Number", "Date", each &lt;FONT color="#000000"&gt;&lt;STRONG&gt;Date.AddDays([Start of Week],[Week Day Number])&lt;/STRONG&gt;&lt;/FONT&gt;, type date)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#"Added Date"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Tue, 31 Aug 2021 02:50:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2045910#M45951</guid>
      <dc:creator>pbi101</dc:creator>
      <dc:date>2021-08-31T02:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list between start date and end date to corresponding days of the week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2055728#M46310</link>
      <description>&lt;P&gt;Thanks pbi101. That worked well. Was just what I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your time in helping me out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 06:53:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-list-between-start-date-and-end-date-to-corresponding/m-p/2055728#M46310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-03T06:53:03Z</dc:date>
    </item>
  </channel>
</rss>

