From the course: Power BI Data Methods
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Add a new column - Power BI Tutorial
From the course: Power BI Data Methods
Solution: Add a new column
(upbeat music) - [Narrator] There are a couple ways to solve this problem, but here's how I did it. I first examined the table structure to figure out what fields would be useful to find the dates. For example, we could select the period or the month name to use as references to calculate the month number. I'm going to use the period field and extract the last two characters in it to find the actual month number. I'll add a new column to this table that I'll call Month. I'll then say Text.End. I'll then refer to period and I want the right two most characters, so I'll put a two in the second parameter. Now we see this returns 11, so it matches November. 10 matches October, and so on. While we're at it, let's also convert this new month field into a whole number. Like we can see on line 12, we can filter out the annual numbers by either removing month 13 from our month column, or we can remove the annual value from the month name. I'm going to choose the latter option and deselect…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Cleaning text fields2m 58s
-
(Locked)
Removing or replacing values2m 49s
-
(Locked)
Splitting and concatenating fields4m 11s
-
(Locked)
Text formulas4m 22s
-
Filtering or removing duplicates5m 4s
-
(Locked)
Filling up and filling down1m 26s
-
(Locked)
Transforming numerical fields2m 48s
-
(Locked)
Challenge: Add a new column22s
-
(Locked)
Solution: Add a new column1m 32s
-
(Locked)
-
-
-
-
-