In the featured YouTube video by Curbal, we learn about creating lists of non consecutive numbers using Power Query. Power Query utilizes 'M' language that supports structured values including lists, records, and tables, each serving specific purposes.
The focus of the tutorial is on 'lists'. Two kinds of values are identified in 'M' language - primitive and structured values. Primitive values are standalone (e.g., “a”, 1, true) while structured values are composed of other values. Lists, as one kind of structured values, are an ordered sequence of values, defined using opening and closing curly brackets. There is no limit to the list size.
The primary need for using lists arises because many functions in 'M' either expect lists as parameters or return lists as return values. Lists, therefore, operate as intermediate products for other queries.
There are operators available for lists along with equivalent functions, such as "=", "<>", and "&" used for comparing and combining lists. Certain native M functions like LIST.FIRST(), LIST.LAST(), LIST.LASTN(), LIST.RANGE(), LIST.SELECT() can be invoked to access specific elements within a list.
The video explains comprehensively the use of lists in transforming data models via Power Query, demonstrating the creation, manipulation and use of lists as input for functions such as Table.RenameColumns(). Further, list creation functions such as *.ToList() are explained. The video wraps up by reinforcing the indispensable role of lists in mastering the 'M' language.
In Power Query, lists play a crucial role. They are ordered sequences of values that can adopt any size and can feature any value type. Lists play a colossal role in managing and manipulating large data sets, aside from being extensively used in functions for various operations. The better one's grasp of the usage and structuring of lists, the easier it is to master data transformations in Power Query.
This video, titled 'Power Query - Create lists of non consecutive numbers | 2 ways', provides a deep dive into the topic of lists in M language, used in Power Query. Particularly, it discusses the ways to create a list of non-consecutive numbers. The M language has structured values like lists, records, and tables, each serving specific purposes. The video serves as an introduction to lists, specifically in the M language.
Lists in M language are usually used as intermediate products for other queries. There are many native functions in M that provide useful functionality and expect lists as one or more of their parameters. Furthermore, many functions in M return lists as return values. This emphasizes the importance of understanding how to create and use lists.
The video breaks down the process of creating lists in M into three broad methods:
For those interested in getting a practical grasp of the topic, downloading the M code provided in the screenshots as a txt file is recommended. Users may have to switch browsers to Edge if required to input a OneDrive password during the download.
Microsoft expert guide, M language tutorials, Power Query list creation, Microsoft Power Query tips, Structured values in M.