Professional Documents
Culture Documents
The Ultimate Guide to Functions in Power Query: Turn Raw Data into Actionable Insights 1st Edition Omid Motamedisedeh full chapter instant download
The Ultimate Guide to Functions in Power Query: Turn Raw Data into Actionable Insights 1st Edition Omid Motamedisedeh full chapter instant download
https://ebookmass.com/product/the-ultimate-guide-to-functions-in-
power-query-omid-motamedisedeh/
https://ebookmass.com/product/postgresql-query-optimization-the-
ultimate-guide-to-building-efficient-queries-2nd-edition-
dombrovskaya/
https://ebookmass.com/product/postgresql-query-optimization-the-
ultimate-guide-to-building-efficient-queries-2-converted-edition-
henrietta-dombrovskaya/
https://ebookmass.com/product/visual-data-insights-using-sas-ods-
graphics-a-guide-to-communication-effective-data-
visualization-1st-edition-leroy-bessler-2/
Visual Data Insights Using SAS ODS Graphics: A Guide to
Communication-Effective Data Visualization 1st Edition
Leroy Bessler
https://ebookmass.com/product/visual-data-insights-using-sas-ods-
graphics-a-guide-to-communication-effective-data-
visualization-1st-edition-leroy-bessler/
https://ebookmass.com/product/the-ultimate-kids-guide-to-the-
universe-jenny-marder/
https://ebookmass.com/product/leveling-up-with-sql-advanced-
techniques-for-transforming-data-into-insights-mark-simon/
https://ebookmass.com/product/microsoft-excel-power-pivot-power-
query-for-dummies-2nd-edition-michael-alexander/
https://ebookmass.com/product/make-your-data-speak-creating-
actionable-data-through-excel-for-non-technical-
professionals-1st-edition-alex-kolokolov/
The Ultimate
Guide to Functions
in Power Query
Turn Raw Data into
Actionable Insights
—
Omid Motamedisedeh
The Ultimate Guide to
Functions in Power
Query
Turn Raw Data into
Actionable Insights
Omid Motamedisedeh
The Ultimate Guide to Functions in Power Query: Turn Raw Data into
Actionable Insights
Omid Motamedisedeh
Brisbane, QLD, Australia
Acknowledgments�����������������������������������������������������������������������������xxi
Introduction�������������������������������������������������������������������������������������xxiii
v
Table of Contents
Table��������������������������������������������������������������������������������������������������������������31
Function���������������������������������������������������������������������������������������������������������31
Type Conversion��������������������������������������������������������������������������������������������������32
Converting Values to the Number Format������������������������������������������������������33
Converting Values to the Text Format������������������������������������������������������������34
Converting Values to the Date and Time Format�������������������������������������������35
Converting Values to the Record Format�������������������������������������������������������35
Conclusion����������������������������������������������������������������������������������������������������������36
vi
Table of Contents
vii
Table of Contents
Date.Day��������������������������������������������������������������������������������������������������������94
Date.DayOfWeek��������������������������������������������������������������������������������������������94
Date.DayOfWeekName�����������������������������������������������������������������������������������95
Date.WeekOfMonth����������������������������������������������������������������������������������������95
Date.WeekOfYear�������������������������������������������������������������������������������������������96
Date.Month����������������������������������������������������������������������������������������������������96
Date.MonthName�������������������������������������������������������������������������������������������97
Date.DayOfYear����������������������������������������������������������������������������������������������97
Date.Year�������������������������������������������������������������������������������������������������������98
Summary������������������������������������������������������������������������������������������������������������98
viii
Table of Contents
List.Select����������������������������������������������������������������������������������������������������122
List.FindText������������������������������������������������������������������������������������������������123
Removing Values in a List���������������������������������������������������������������������������������124
List.RemoveNull�������������������������������������������������������������������������������������������124
List.Distinct��������������������������������������������������������������������������������������������������125
List.RemoveFirsN and List.RemoveLastN����������������������������������������������������126
List.RemoveRange���������������������������������������������������������������������������������������127
List.RemoveItems����������������������������������������������������������������������������������������128
List.Skip�������������������������������������������������������������������������������������������������������129
List.Alternate�����������������������������������������������������������������������������������������������129
List Merging������������������������������������������������������������������������������������������������������131
List.Combine������������������������������������������������������������������������������������������������131
List.InsertRange������������������������������������������������������������������������������������������132
List.Zip���������������������������������������������������������������������������������������������������������133
List.Union�����������������������������������������������������������������������������������������������������133
List.Intersect������������������������������������������������������������������������������������������������134
List.Difference���������������������������������������������������������������������������������������������135
Mathematical Calculations on the Data of a List����������������������������������������������136
List Information Functions��������������������������������������������������������������������������������139
List.IsEmpty�������������������������������������������������������������������������������������������������140
List.IsDistinct�����������������������������������������������������������������������������������������������140
List.Contains������������������������������������������������������������������������������������������������141
List.ContainsAll��������������������������������������������������������������������������������������������142
List.ContainsAny������������������������������������������������������������������������������������������143
List.AllTrue���������������������������������������������������������������������������������������������������144
List.AnyTrue�������������������������������������������������������������������������������������������������144
ix
Table of Contents
Positions in a List����������������������������������������������������������������������������������������������144
List.Positions�����������������������������������������������������������������������������������������������145
List.PositionOf���������������������������������������������������������������������������������������������145
List.PositionOfAny����������������������������������������������������������������������������������������147
Replacing and Transforming Values������������������������������������������������������������������148
List.ReplaceValue����������������������������������������������������������������������������������������148
List.ReplaceMatchingItems�������������������������������������������������������������������������149
List.ReplaceRange���������������������������������������������������������������������������������������151
List.Transform����������������������������������������������������������������������������������������������152
List.TransformMany�������������������������������������������������������������������������������������153
Other Functions�������������������������������������������������������������������������������������������������154
List.Single����������������������������������������������������������������������������������������������������154
List.SingleOrDefault�������������������������������������������������������������������������������������154
List.Repeat���������������������������������������������������������������������������������������������������155
List.Split�������������������������������������������������������������������������������������������������������156
Summary����������������������������������������������������������������������������������������������������������157
Chapter 7: Records���������������������������������������������������������������������������159
Defining a Record���������������������������������������������������������������������������������������������159
Record Properties���������������������������������������������������������������������������������������������162
Record.FieldCount���������������������������������������������������������������������������������������162
Record.FieldNames�������������������������������������������������������������������������������������163
Record.FieldValues��������������������������������������������������������������������������������������163
Record.ToList�����������������������������������������������������������������������������������������������164
Record.Field������������������������������������������������������������������������������������������������164
Record.FieldOrDefault���������������������������������������������������������������������������������165
Record.HasFields�����������������������������������������������������������������������������������������166
x
Table of Contents
Record Correction���������������������������������������������������������������������������������������������167
Record.AddField������������������������������������������������������������������������������������������167
Record.Combine������������������������������������������������������������������������������������������168
Record.SelectFields�������������������������������������������������������������������������������������168
Record.RemoveFields����������������������������������������������������������������������������������170
Record.RenameFields����������������������������������������������������������������������������������172
Record.ReorderFields����������������������������������������������������������������������������������173
Record.TransformFields�������������������������������������������������������������������������������174
Record Conversion��������������������������������������������������������������������������������������������175
Record.FromList������������������������������������������������������������������������������������������175
Record.FromTable����������������������������������������������������������������������������������������176
Record.ToTable��������������������������������������������������������������������������������������������177
Summary����������������������������������������������������������������������������������������������������������177
Chapter 8: Tables������������������������������������������������������������������������������179
Creating a Table������������������������������������������������������������������������������������������������180
Table.FromColumns�������������������������������������������������������������������������������������180
Table.FromRows������������������������������������������������������������������������������������������182
Table.FromRecords��������������������������������������������������������������������������������������185
Table.FromValue������������������������������������������������������������������������������������������187
Table Conversion�����������������������������������������������������������������������������������������������189
Table.ToRecords�������������������������������������������������������������������������������������������190
Table.ToColumns������������������������������������������������������������������������������������������190
Table.ToRows�����������������������������������������������������������������������������������������������191
Table.ToList��������������������������������������������������������������������������������������������������192
Table.Column�����������������������������������������������������������������������������������������������193
Table.TransformRows����������������������������������������������������������������������������������194
Table.Split����������������������������������������������������������������������������������������������������195
Table.SplitAt�������������������������������������������������������������������������������������������������196
xi
Table of Contents
Information��������������������������������������������������������������������������������������������������������197
Selecting Table Rows����������������������������������������������������������������������������������������200
Table.FirstValue�������������������������������������������������������������������������������������������201
Table.First and Table.Last����������������������������������������������������������������������������201
Table.FirstN and Table.LastN������������������������������������������������������������������������202
Table.Max and Table.Min�����������������������������������������������������������������������������204
Table.MaxN and Table.MinN�������������������������������������������������������������������������206
Table.Range�������������������������������������������������������������������������������������������������208
Table.SelectRows����������������������������������������������������������������������������������������209
Table.SelectRowsWithErrors������������������������������������������������������������������������212
Deleting Table Rows������������������������������������������������������������������������������������������214
Table.RemoveFirstN and Table.RemoveLastN����������������������������������������������214
Table.Distinct�����������������������������������������������������������������������������������������������217
Table.Skip����������������������������������������������������������������������������������������������������219
Table.RemoveRows��������������������������������������������������������������������������������������221
Table.AlternateRows������������������������������������������������������������������������������������222
Table.RemoveRowsWithErrors���������������������������������������������������������������������224
Table.RemoveMatchingRows�����������������������������������������������������������������������225
Insert and Replace Table Rows�������������������������������������������������������������������������227
Table.InsertRows�����������������������������������������������������������������������������������������228
Table.ReplaceRows��������������������������������������������������������������������������������������229
Table.ReplaceMatchingRows�����������������������������������������������������������������������231
Table.Repeat������������������������������������������������������������������������������������������������232
Order of rows����������������������������������������������������������������������������������������������������234
Table.ReverseRows�������������������������������������������������������������������������������������234
Table.Sort�����������������������������������������������������������������������������������������������������235
Checking a Condition in All Rows����������������������������������������������������������������������238
xii
Table of Contents
Table.IsDistinct��������������������������������������������������������������������������������������������238
Table.MatchesAllRows���������������������������������������������������������������������������������239
Table.MatchesAnyRows�������������������������������������������������������������������������������241
Table.Contains���������������������������������������������������������������������������������������������242
Table.ContainsAll and Table.ContainsAny����������������������������������������������������244
Table.SingleRow������������������������������������������������������������������������������������������245
Column Names��������������������������������������������������������������������������������������������������246
Table.ColumnNames������������������������������������������������������������������������������������246
Table.DemoteHeaders����������������������������������������������������������������������������������246
Table.PromoteHeaders���������������������������������������������������������������������������������247
Table.HasColumns���������������������������������������������������������������������������������������249
Table.ColumnsOfType����������������������������������������������������������������������������������250
Table.PrefixColumns������������������������������������������������������������������������������������251
Table.RenameColumns��������������������������������������������������������������������������������252
Modifing columns���������������������������������������������������������������������������������������������255
Table.RemoveColumns��������������������������������������������������������������������������������256
Table.SelectColumns�����������������������������������������������������������������������������������259
Table.DuplicateColumn��������������������������������������������������������������������������������263
Table.TransformColumnTypes����������������������������������������������������������������������265
Table.TransformColumns�����������������������������������������������������������������������������267
Table.AddIndexColumn��������������������������������������������������������������������������������271
Table.AddColumn�����������������������������������������������������������������������������������������274
Table.AddRankColumn���������������������������������������������������������������������������������277
Table.SplitColumn����������������������������������������������������������������������������������������281
Table.CombineColumns�������������������������������������������������������������������������������285
Table.CombineColumnsToRecord����������������������������������������������������������������288
Table.ReorderColumns���������������������������������������������������������������������������������290
Table.Pivot���������������������������������������������������������������������������������������������������291
xiii
Table of Contents
Table.Unpivot�����������������������������������������������������������������������������������������������294
Table.Group��������������������������������������������������������������������������������������������������297
Table.Transpose�������������������������������������������������������������������������������������������301
Combining Tables����������������������������������������������������������������������������������������������303
Table.Combine���������������������������������������������������������������������������������������������303
Table.Join����������������������������������������������������������������������������������������������������308
Table.NestedJoin�����������������������������������������������������������������������������������������317
Expanding Columns������������������������������������������������������������������������������������������319
Table.ExpandListColumn������������������������������������������������������������������������������320
Table.ExpandRecordColumn������������������������������������������������������������������������322
Table.ExpandTableColumn���������������������������������������������������������������������������326
Table.AggregateTableColumn����������������������������������������������������������������������329
Replacing Column Values����������������������������������������������������������������������������������330
Table.FillDown and Table.FillUp�������������������������������������������������������������������331
Table.ReplaceErrorValues����������������������������������������������������������������������������334
Table.ReplaceValue��������������������������������������������������������������������������������������337
Finding a Value in a Table����������������������������������������������������������������������������������340
Table.FindText����������������������������������������������������������������������������������������������340
Table.PositionOf�������������������������������������������������������������������������������������������341
Table.PositionOfAny�������������������������������������������������������������������������������������344
Summary����������������������������������������������������������������������������������������������������������345
xiv
Table of Contents
Excel.CurrentWorkbook�������������������������������������������������������������������������������������357
Summary����������������������������������������������������������������������������������������������������������357
Index�������������������������������������������������������������������������������������������������383
xv
About the Author
Omid Motamedisedeh is a freelance data and
business intelligence analyst with a PhD in
Industrial Engineering. He’s currently working
towards his second PhD at Queensland
University of Technology. Omid is the author
of several articles in industry journals (Electric
Power Systems Research, Journal of Building
Engineering, Energy, Neural Computing and
Applications, and others), and seven books (all
in Farsi) namely Managing Data Entry in Excel by Data Validation, Data
Analysis by Excel’s Pivot Table, Power Query as The Magic of Excel, 222
Most Useful Functions in Excel 2016, Useful Excel Functions in Excel 2019,
Reference of Functions in Excel 2021, and From Drawing Charts to Creating
Dashboards in Excel 2016.
xvii
About the Technical Reviewer
Bo Rydobon (a.k.a. Excel Wizard) is a Microsoft Excel expert and YouTuber
from Thailand who is known for his speed and mastery of Excel. He is also
the creator of the Excel Wizard YouTube channel, where he shares tips and
tricks on how to use advanced dynamic arrays. He actively contributes
on Excelforum.com and became a Top 5 reputation within a few years.
His participation in the Excel BI LinkedIn Excel Challenge drew notable
attention due to his impressive response. In 2022, Bo Rydobon won the
Excel Esports Speedrun organized by the Financial Modeling World Cup.
Bo Rydobon is an inspiration to Excel users all over the world.
He shows that anyone can learn Excel and become an expert, regardless of
their background or experience.
xix
Acknowledgments
I would like to express my sincere gratitude to the individuals who have
played an indispensable role in supporting me throughout the process
of writing this book. My appreciation extends to both those within my
professional circle and those who hold a personal place in my life.
First and foremost, I extend heartfelt thanks to Faranak, whose
unwavering belief in me and encouragement provided the catalyst for
embarking on this writing journey.
I am equally grateful to Bo Rydobon, my esteemed technical reviewer,
whose invaluable insights and motivating feedback have significantly
enriched the quality of this work.
Furthermore, I wish to extend my thanks to the Apress team, including
Susan McDermott (Editorial Director), Shobana Srinivasan (Book
Coordinator), and Shaul Elson (Editorial Manager), for their commendable
professionalism and collaborative approach. Their contributions have
transformed working with Apress into a truly gratifying experience.
Lastly, my profound and enduring appreciation goes to Professor
Hamid Reza Irani, who imparted foundational knowledge of Excel during
my undergraduate years, and to Mike Girvin, a cherished Excel mentor.
Mike's prolific Excel tips shared on the ExcelIsFun YouTube channel have
been a wellspring of learning for all Excel fans like me.
xxi
Introduction
In today's data-driven landscape, the ability to seamlessly transform raw
data into meaningful insights is a skill of paramount importance. The
Ultimate Guide to Functions in Power Query stands as a beacon for Excel
and Power BI enthusiasts, equipping them with the tools to unlock the full
potential of their data manipulation endeavors.
In this comprehensive guide, you will delve into the world of Power
Query functions, the building blocks that empower users to effortlessly
manipulate, cleanse, and refine their data. Whether you're a seasoned
data professional or a novice user, this book is designed to elevate your
proficiency in harnessing the capabilities of Power Query functions,
ultimately enabling you to convert seemingly complex datasets into
actionable insights.
Join me on a journey through the intricacies of Power Query functions
as I demystify their functionalities, explore real-world use cases, and
provide step-by-step guidance on their application. With a meticulous
balance of theory and hands-on practice, The Ultimate Guide to Functions
in Power Query is not just a book; it's your indispensable companion in
mastering the art of data transformation.
Chapters include
xxiii
Introduction
xxiv
Another random document with
no related content on Scribd:
who live in common, under an abbot, imitating the life of the
apostles. Second, Anchorites, who, after they have been instructed
and educated in monasteries, withdraw into the deserts. The authors
of this order were St. Paul the hermit and St. Anthony. And third, the
Sarabaites, who pretended to retire from the world, and joined
themselves together by two or three in a company, to live after their
own humour, not being subject to any man. He looks upon these but
as a corruption of the monastic state rather than a distinct order. He
adds to these a fourth sort of monks, made of those who, not being
able to endure the monastic life in a convent, retreated alone into
certain cells to live more at liberty, but praises the second as the
most perfect. In his nineteenth conference, an abbot called John,
who had been an anchorite and had entered a monastery, is asked
which of the two orders was to be preferred, and replies that he
thought the life of the cœnobites best for those who were not
absolutely perfect, and shows that none but those who have attained
to a degree of eminent perfection are capable of living the life of a
hermit.[439] Another of these ancient fathers, Nilus, who had betaken
himself to a solitary life in the desert of Sinai, and died about the
year 451, writes a treatise upon the question whether the life of the
Anchorites, or Hermits, whom he also calls Hesycasts, or Quietists,
who dwell in solitude, is to be preferred before the life of those
religious who dwell in cities, and states that this is a question about
which the judgment of spiritual men is much divided. Those who
prefer the religious who live in communities in cities before the
anchorites, say that they have more worth because they meet with
more opposition; whereas those who live in solitude being quiet and
not subject to temptations, have not so much virtue; to which Nilus
replies that there are as many temptations in solitude as in cities,
and that the reason why some persons argue so is because they
regard outward sins only, not considering that there are infinite
temptations and spiritual sins which encounter us as well in privacy
as in cities; and he therefore supports the opinion that the solitary life
is the higher form of the religious life.[440] Isidore of Seville, too, in the
seventh century, distinguishes between the different kinds of monks,
and says that the Cœnobites are they that live in common, like those
in the days of the apostles, who sold their goods and had all things in
common; the Hermits, they that withdraw into desert places and vast
solitudes in imitation of Elias and John the Baptist, delighting, with a
wonderful contempt of the world, in total solitude; and the
Anchorites, they who, having perfected themselves in cœnobitical
life, shut themselves up in cells apart from the aspect of men,
inaccessible to all, and living in the sole contemplation of God.[441]
But Bede, who was a Benedictine monk, seems also to regard the
life of an anchorite as a higher form of religious life, when in his
History he says of Cudberct on his retiring to the island of Farne,
that, ‘advancing in the merits of his devout intention, he proceeded
even to the adoption of a hermit life of solitary contemplation and
secret silence;’ and, in his Life, that ‘he was now permitted to ascend
to the leisure of divine speculation, and rejoiced that he had now
reached the lot of those of whom we sing in the Psalm, The saints
shall go from virtue to virtue; the God of Gods shall be seen in
Sion.’[442]
The preference for this mode of life, as the highest form of a
religious life that could be attained, seems to have arisen from an
overstrained interpretation of some passages of Scripture. Thus
Bede, in the beginning of his Life of Cudberct, tells us that he ‘would
hallow its commencement by quoting the words of the prophet
Jeremiah, who, in lauding the state of the perfection of the anchorite,
says, “It is good for a man who hath borne the yoke from his youth;
he shall sit alone and keep silent, because he shall raise himself
above himself.”’[443] But the preference of the solitary life as the
highest form of asceticism seems to have been mainly founded upon
two passages in the New Testament. One is that passage in the
Epistle of St. James in which he winds up his exhortation by saying,
‘Pure religion and undefiled, before God and the Father, is to visit the
widows and fatherless in their affliction, and to keep himself
unspotted from the world;’ or, as a literal rendering of the old Latin
version would be, ‘Pure and immaculate religious service towards
God and the Father is this, to visit the infants and widows in their
tribulation, and to keep oneself immaculate from this world.’[444] By an
overstrained interpretation of this passage it was assumed that a
person could only keep himself immaculate from the world by
withdrawing himself from it altogether, and from all association with
his fellow-creatures, except in works of benevolence to those in
distress; and that this was a form of religion peculiarly acceptable to
God and the Father. The other passage is that in the First Epistle of
St. Peter, where it is said, ‘But ye are a chosen generation, a royal
priesthood, an holy nation, a peculiar people; that ye should show
forth the praises of Him who hath called you out of darkness into His
marvellous light; which in times past were not a people, but are now
the people of God; which had not obtained mercy, but now have
obtained mercy. Dearly beloved, I beseech you as strangers and
pilgrims, abstain from fleshly lusts which war against the soul.’[445]
And this was interpreted to mean that those who passed their lives in
mortifying the body and praising God by singing the psalter, in living
in this world as strangers from all society and as pilgrims to a better
world, were a peculiar people and entitled to call themselves the
people of God.
Anchorites called They thus came to the conclusion that a
Deicolæ or God- solitary life passed in devotion and self-
worshippers. mortification, accompanied by acts of
benevolence to the sick and bereaved, was a ‘cultus’ or ‘religio’
peculiarly acceptable to God and the Father; and hence they were
called, if they did not call themselves so, Deicolæ, or God-
worshippers, in contrast to Christicolæ, the name applied in a
general sense to all Christians, and, in a narrower application, to
monks leading a cœnobitical life. Thus in the Life of St. Anthony,
written by Athanasius, bishop of Alexandria, who introduced
monachism into the Western Church, and translated into Latin by
Evagrius, a priest of Antioch, in the year 358, we find it stated that
‘the neighbours and the monks whom he often visited, seeing St.
Anthony, called him a Deicola, and, indulging in the expression of
natural affection, they loved him, some as a son, others as a
brother.’[446] Again, Martinus, a bishop, who terms himself Scotus, or
a native of Ireland, writing to Miro, king of Gallicia, in the sixth
century, probably about the year 560, regarding ‘the rules of an
honest life,’ says that he will not urge him to follow ‘those more
arduous and perfect rules which are practised by a few very
excellent Deicolæ.’[447] Columbanus, too, in his second instruction or
sermon to his monks, says, ‘Whosoever, therefore, willeth to be
made a habitation for God, let him strive to become lowly and quiet,
that not by glibness of words, nor by suppleness of body, but by the
reality of his humility he may be recognised as a Deicola; for
goodness of heart requireth not the feigned religion of words;’[448] and
a disciple of Columbanus, who followed out this life after his master
had been driven out of Luxeuil with his monks, retired to a solitary
spot called Luthra in the midst of a forest, now Lure in the district of
Besançon, ‘But his virtues having attracted religious men to him from
all quarters, he formed a community of monks and erected two
oratories; and, after governing his monastery for several years, he
appointed one of his disciples abbot in his stead, and again withdrew
to a solitary cell, where he devoted himself to divine contemplation
till his death about 625. This man bears no other name in the
calendars than Deicola, and his memory is still held in high
estimation by the people of that country, who call him Saint Die.’[449]
Anchorites called We find, too, these solitaries also called the
the people of God. people of God. In the ancient Life of St. Patrick
written by Probus, he tells us that, after Patrick had passed four
years with St. Martin of Tours, where he was trained in monastic life,
an angel appeared to him and said, ‘Go to the people of God, that is,
to the hermits and solitaries, with naked feet, and live with them, that
you may be tried for some time; and he went into a solitude, and
remained with the hermits eight years.’[450]
The conception of this ‘cultus’ of God is well expressed in a
passage of Simeon of Durham, who, in his History of the Kings,
under the year 781, says, some 250 years after, of a certain Dregmo,
in the territory of the church at Hexham, that ‘he greatly feared God
and diligently devoted himself, as far as his means allowed, to the
exercise of works of charity, leading a life in all respects apart from
the customs of his countrymen—a man of remarkable simplicity and
innocence, and of profound devotion and reverence towards the
saints of God; on which account his neighbours held him in great
honour, and called him a true God-worshipper.’[451]
In the seventh century attempts were made by several councils to
bring the solitaries more under the monastic rule. By the fifth canon
of the Council of Toledo, held in 646, it was provided that ‘well-
instructed monks alone should be allowed to live separate from a
cloister as recluses, and become the trainers of others in the higher
forms of ascetic life. Those recluses and wanderers who are
unworthy must be brought within a cloister, and in future no one must
be devoted to this highest form of the ascetic life, as a recluse, who
had not first been trained in a monastery to the knowledge and
practice of the monastic life.’[452] By the Council of Trullo, held in 692,
it was provided, by canon 41, that those who would live separate in
their own cells must have first passed three years in a monastery,
and that any one who has once withdrawn himself to a solitary cell
must not again leave it; and by canon 42 that, as there are hermits
who come to the towns in black clothing and long hair, and associate
with secular persons, it is ordered that such persons shall be
tonsured and enter a monastery, wearing the monastic dress. If they
will not do this, they must be expelled from the town.[453]
A.D. 747. Such attempts, however, seem to have had
Order of Secular little effect, and the next century was to see the
Canons instituted. Anchorites and Recluses, who lived apart from
the monastic rule, and practised what they considered the highest
form of asceticism, and the secular clergy, who had never come
under the monastic rule, but were subject only to the general canon-
law of the church, brought more together, a tendency to which
indeed had probably already manifested itself in the end of the
previous century, which the forty-second canon of the Council of
Trullo was designed to check. For though nothing could be more
opposed in spirit, than the secular life of the ordinary clergy on the
one hand and the ascetic life of the anchorites on the other, forming,
as it were, the opposite poles of the ecclesiastical system, yet they
had one feature in common—that both lived separately, in opposition
to the cœnobitical life of the monks. The new institution which thus
brought them together was that of the secular canons, founded by
Chrodegang, bishop of Metz, in the year 747. His rule was at first
intended for his clergy of Metz alone, with a view of leading them to
adopt a more regular life in the ecclesiastical sense of the term. This
rule consists of thirty-four chapters. By the third he directs that the
canon clerics shall live together in a cloister, and shall all sleep in
one dormitory, with the exception of those to whom the bishop shall
give permission to sleep separately in their own dwellings within the
cloister; that no woman or layman is to enter the cloister without an
order from the bishop, the archdeacon, or the ‘primicerius’; that they
shall eat in the same refectory, that laics shall only be allowed to
remain in the cloister as long as they have work, and that those living
separately within the cloister must live alone and have no other cleric
with them. By the ninth chapter he enjoins them to perform the bodily
labours in common as well as in private. By the thirty-first he enjoins
his clerics to give to the church what real property they have,
retaining the income only, but gives them leave to reserve to
themselves their moveable property, for almsgiving, and to dispose
of it as they please by their wills.[454]
Deicolæ brought The object of this rule was certainly to bring the
under canonical secular clergy of this town to live a cœnobitical
rule. life, but with such relaxations as would both allow
it to be considerably modified towards certain of the body, and to
permit the recluses, though not expressly named, to be included
within it; but the new canonical life became so popular, that the rule
was revised and enlarged, so as to adapt it to the state of the clergy
generally, and enable it to be extended over the whole church. This
revised rule consists of eighty-six chapters. By the thirteenth it is
provided that within the cloisters there shall be dormitories,
refectories, cellars and other habitations; that all shall sleep in one
dormitory, living as brethren in one society, except those to whom the
bishop shall give leave to sleep separately on separate couches in
their own dwellings in the cloister, with seniors among them to watch
over them; and that no female or laic shall enter the cloister. Chapter
thirty-nine bears that, as there is an evil zeal of bitterness which
separates from God and leads to destruction, so there is a good zeal
which separates from vice and leads to God and eternal life:
therefore they ought to exercise zeal with the most fervent love, as
servants of God (Servi Dei). The eighty-first chapter, however, deals
directly with the Deicolæ, with the view of bringing them under the
canonical rule. It consists of ‘the epistle of a certain Deicola, sent in
the name of Christ to the priests and clerics for their instruction and
exhortation;’ and it is addressed ‘to the beloved priests in the
churches of Christ, the bishops and all the clergy therein
everywhere, and their servants, and to all the Deicolæ living in the
whole world.’[455] He begs of them that, ‘living justly, piously and
holily, they should show a good example to others, and live with soul,
heart and body under the canonical rule.’ He exhorts ‘all clerics
under them to give humble obedience, and endeavour to fulfil the
canonical rule without murmuring, serving the Lord willingly; seeing
that every man ought to be subject to the higher powers and those
put over them, how much more should they, as servants of God
(Servi Dei), humbly obey their provosts?’ He finally exhorts them to
be mindful ‘of the canonical rules, and to have their precepts always
before their eyes.’[456] By the General Council held at Aix-la-Chapelle
in 816 and 817, this canonical rule was adopted, and a number of
canons were passed to give effect to it, with some modifications.
They begin with the 114th canon. The 117th canon provides that
each bishop must see that the cloister in which his clerics live is
enclosed with a strong wall; the 120th, that those clerics who
possess property of their own and an income from the church shall
receive from the community their daily food only, with a share of the
oblations. Those who have no private means are entirely supported
and clothed. By the 135th, the boys and youths who are educated in
the canonry shall be well cared for and instructed, be placed under a
senior canon and dwell together in the upper floor of a house. By the
141st, each bishop must provide a hospital for the poor and
strangers, and each cleric shall give the tenth of what he received for
its support. By the 142d, canons are allowed to have separate
dwellings, and proper places shall be provided for the aged and the
sick within the canonry; and by the 144th, women must not enter the
dwellings and the cloister, with the exception of the church.[457]
Deicolæ in the In the early English Church we find the name
Saxon Church. Deicola in a Saxon form applied to a community
of solitaries. We find it stated in the Peterborough MS. of the Anglo-
Saxon Chronicle, in the year 655, that ‘Peada, king of the Mercians,
and Oswiu, the brother of King Osuald, came together and said that
they would rear a monastery to the glory of Christ and the honour of
St. Peter; and they did so, and gave it the name of Medeshamstede,’
now Peterborough. In 657 the monastery was finished, and
consecrated by Deusdedit, archbishop of Canterbury, in the
presence of King Wulfhere, the brother and successor of King
Peada, and his earls and thanes. There were also present four
bishops, and Wilfrid, who was then only a priest; and the king
endowed it. Then ‘the abbot desired that he would grant him that
which he would desire of him, and the king granted it to him. “I have
here,” he said, “God-fearing monks, who would pass their lives in an
anchoretage, if they knew where. But here is an island, which is
called Ancarig,” now Thorney Isle, “and I will crave this—that we may
there build a monastery to the glory of St. Mary, that they may there
dwell who may desire to lead their lives in peace and in rest.”’ The
king accordingly grants the request, and endows this monastery
also.[458] The expression Gode-frihte, or God-fearing, here applied to
these anchorite monks, is obviously the Saxon equivalent of Deicola.
In the following century the canonical rule was introduced into
England, as we find in a legatine synod held in Northumberland, in
the year 787, that by the fourth canon bishops are required to take
care that all canons live canonically, and all monks or nuns regularly
—that is, according to monastic rule;[459] and that the title of God-
worshippers passed down to the canon clerics, at least to those who
lived separately, appears from this, that, when King Athelstan was on
his march against the Scots in 936, he halted at York, and there
besought of the ministers of St. Peter’s church, who were then called
Colidei, to offer up their prayers on behalf of himself and his
expedition. They are said to be ‘men of holy life and honest
conversation, then styled Colidei, who maintained a number of poor
people, and withal had but little whereon to live.’ ‘It would appear,’
says Dr. Reeves, ‘that these Colidei were the officiating clergy of the
cathedral church of St. Peter’s at York in 946, and that they
discharged the double function of divine service and eleemosynary
entertainment;’[460] in other words, they were canon clerics, and the
name Colidei is merely an inversion of that of Deicolæ. Those of
Canterbury we find called in a charter by King Ethelred, in 1006,
cultores clerici, or cleric God-worshippers, the word Dei being
evidently implied.[461]
Anchoretical life in In the early Monastic Church of Ireland, this
Ireland and tendency to prefer a solitary life, as a higher form
Scotland. of the religious life, developed itself at a very
early period. It seems to have assumed two different aspects. One
when the abbot or one of the brethren of the monastery retired for a
time to a separate cell, for solitary prayer, or for penitential exercises,
during which time he held no intercourse with the other inmates of
the monasteries. The cells adopted for this purpose were usually
those primitive dwellings called by the Irish Clochans, built of
unmortared stone, with walls of great thickness, circular in shape,
with a dome-shaped roof, somewhat of a beehive form, and hence
often called beehive cells. When used for such retirement they were
called Carcair, or prison cells. Thus, in an old poem attributed to
Cuimin of Coindeire, he says of Enda, who founded the monastery
on the principal of the Arann Isles:—