
Student raised a valid point regarding previous quiz where we calculated no of months difference between two dates. here,i am providing the solution to that year issue and this formula now can work on any dates.
How to add days or months or years or quarters into a date.
List Date function is adorable for its smoothening and easiness how it handles the dates.
How to find out the common values in Multiple tables by converting them to lists. This function is another feather in your cap. Come on, let us learn it.
List Difference is another function which can help us in looking up the data when you have more than one tables.
In this lecture I am assisting my student who is one of you and wanted to create several parameters in excel sheet which can control the data in powerquery.
Text.Start function works the same way as LEFT function works in Excel.
Now you can extract values from the middle of a text using this Text Middle function
We should know if we need to add a string inside the other strings ,how we can achieve that. Also, how to remove a string from another string.
One of you emailed me asking if we have to remove special characters and it is not just one but many then how to do it in powerquery. Using Text remove function and then linking it with excel for a quick output is what we are looking here.
Text.TrimStart Text.TrimEnd , Text.Trim ,Text.Upper , Text.lower. Text.Repeat . Text.length
These are the above functions which I have explained, These are basic functions but one should know it as often we find their use in day to day data work.
This question came from one of you. Here , we have a problem of splitting two things - year and status from a string. And, problem becomes more worsen when we do not have a specific structure as to how year and other status will appear. it can appear in any form. Let us see how we have solved this issue.
One of you wanted to solve this project where we want to avoid duplicate IDs and show only one ID against its last row data .
This Part 3 series is in continuation to Part2. To understand and make the best use of this part you must have seen part1 and part2. This is mandatory.
We are learning the important date functions in Mcode which helps us to work with dates in any format. We can add days,months, quaters to dates.
We can extract the month, day, year , day of a week using M code date functions.
We can find out the dates falling within a year or month or today date and many more other things.
DateAddDays, DateAddmonth, DateAddQtr, EoMonth, DateIsincurrentmonth etc important functions are covered in detail.
We are discussing about List functions like List Date, List union, List Intersect, List Difference with many practical examples.
How to find out the matching results in more than one tables .
How to union common items in more than one table.
How to find out the non matches in more than one table.
Real Projects showing the importance of List functions mentioned above.
How to use FIND, LEFT, RIGHT, MID Functions in M code .
How to use them in practical situation.
How to check if string has contain a specific word.
How to reverse the strings characters using M code Text reverse.
How to insert characters repeatedly into a string.
How to remove text from a string.
How to find out the length of string.
Convert to lower case or upper case.
How to remove spaces from left or right or all spaces from a string.
How to create a function which has multiple parameters and with that powerquery can change the data. It is a very big project.