Use PowerQuery to generate a list of items based on a date recurrence

Dan_W1

New Member
Joined
Oct 30, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a Sharepoint calendar with recurring items which I want to export into a CSV, however Sharepoint only exports recurring events as a single item rather than a row for each recurrence.

I connected the list to Power BI and found the RecurrenceData field which shows the recurrence methodology. Can someone help me with how to generate the list of individual rows using this information?

Note - there are different recurrences for items in the list. E.g. "annually on the x day of the month", "weekly on x day", "monthly on the x day of the month"

Below is an example of list data I am working with:

1635574249507.png
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
We cannot manipulate data in a picture. Please reload your sample using XL2BB. See my signature for instructions. Also, mock up what you want you solution to look like
 
Upvote 0
We cannot manipulate data in a picture. Please reload your sample using XL2BB. See my signature for instructions. Also, mock up what you want you solution to look like
Thanks for your reply. Please see XL2BB included below:

This is the data from the Sharepoint list (Column H will not be in the data, I have added this to describe Column G for this post):
Book1(44).xlsx
ABCDEFGH
1TitleEventDateEndDatefAllDayEventfRecurrenceID.1FieldValuesForEdit.RecurrenceDataRecurrence Note
2Task 11/11/202117/12/2040FALSETRUE1<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><weekly mo="TRUE" weekFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>Weekly - First day of the week
3Task 25/11/20212/01/2105TRUETRUE5<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><monthlyByDay fr="TRUE" weekdayOfMonth="first" monthFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>Monthly - First Friday of the month
4Task 312/11/20219/01/2105TRUETRUE3<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><monthlyByDay fr="TRUE" weekdayOfMonth="second" monthFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>Monthly - Second Friday of the month
5Task 419/11/202116/01/2105TRUETRUE4<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><monthlyByDay fr="TRUE" weekdayOfMonth="third" monthFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>Monthly - Third Friday of the month
6Task 530/11/202130/11/2170TRUETRUE6<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><yearly yearFrequency="1" month="11" day="30" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>Annually - On the 30 November
Sheet3


Here is what I would like the solution to look like in Nov/Dec 2021 and Nov/Dec 2022 as an example:
Book1(44).xlsx
AB
9Sample - Nov/Dec 2021
10TitleEventDate
11Task 11/11/2021
12Task 111/8/21
13Task 111/15/21
14Task 111/22/21
15Task 111/29/21
16Task 112/6/21
17Task 112/13/21
18Task 112/20/21
19Task 112/27/21
20Task 25/11/2021
21Task 212/3/21
22Task 312/11/2021
23Task 312/10/21
24Task 419/11/2021
25Task 412/17/21
26Task 530/11/2021
27
28Sample Nov/Dec 2022
29TitleEventDate
30Task 111/7/22
31Task 111/14/22
32Task 111/21/22
33Task 111/28/22
34Task 112/5/22
35Task 112/12/22
36Task 112/19/22
37Task 112/26/22
38Task 211/4/22
39Task 212/2/22
40Task 311/11/22
41Task 312/9/22
42Task 411/18/22
43Task 412/16/22
44Task 511/30/22
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top