From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Crop modeling - Power BI Tutorial
From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Solution: Crop modeling
(upbeat music) - [Instructor] In Power BI Desktop, let's take a look at the crop data table first in the data view. Notice that while there are crop categories in the commodity column, these categories or the commodities are further broken down into items, the data items, as subsets of these commodities. So we'll need to aggregate the totals based on the commodity name and not the more detailed data item label. We want to first think about filtering our data then calculating the total over that filtered data table. Let's first add the commodity to a table visual. Next, let's create a new DAX measure for the total volume of crops produced in 2015. Let's add it to a new table. Call this calculations. We'll then set up this formula using the calculate DAX function so that we can sum up the volume field from the data table as our aggregate. Next, we want to think about the filters in the second parameter of the calculate…
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
-
-
-
-
DAX tables and GENERATESERIES2m 58s
-
(Locked)
DAX columns2m 43s
-
(Locked)
DAX measures3m 41s
-
(Locked)
DATE, YEAR, MONTH, and DAY date DAX functions3m 14s
-
(Locked)
CALENDAR and CALENDARAUTO DAX functions3m
-
(Locked)
DAX measure evaluation context10m 33s
-
(Locked)
CALCULATE DAX function6m 17s
-
(Locked)
DAX ruler using FIRSTDATE, LASTDATE, and PARALLELPERIOD DAX functions5m 58s
-
(Locked)
Challenge: Crop modeling1m 10s
-
(Locked)
Solution: Crop modeling4m 32s
-
-
-
-