In this two-day course, students will be introduced to using Data Analysis Expressions (DAX), which is the expression language that is used to create custom calculations in the Power BI Data model. The course covers some of the theoretical underpinnings of the data model and DAX, but the emphasis is on using DAX to solve common business problems. Students will learn how to write their own calculated columns, measures, and tables, how to visualize the way Power BI computes DAX calculations, and how to troubleshoot custom code. This instructor-led course consists of a combination of lecture, demonstrations, and hands-on labs.Software Used During the ClassThe standard lab setup for this class consists of a Window 10 PC with Power BI Desktop and DAX Studio installed.AudienceThis course is intended for business users who have been using Power BI to build analytic solutions and are ready to take advantage of the power and flexibility that DAX provides. Learning DAX is a very common “next step” for experienced Power BI users.PrerequisitesAlthough experience with Power BI Desktop is not strictly required for this class, students with at least some familiarity will be better equipped to get the most out of the lab work.DAX functions that are covered in this class include:Date and time functions: CALENDAR(), DATE(), DATEDIFF(), NOW(), WEEKDAY(), WEEKNUM(), YEAR(), MONTH(), DAY()Filter functions: ALL(), ALLCROSSFILTERED(), ALLEXCEPT(), ALLSELECTED(), CALCULATE(), CALCULATETABLE(), FILTER(), KEEPFILTERS(), LOOKUPVALUE(), REMOVEFILTERS()Information functions: CONTAINS(), HASONEFILTER(), HASONEVALUE(), ISBLANK(), ISEMPTY(), ISERROR(), USERNAME()Logical functions: AND(), COALESCE(), IF(), IF.EAGER(), IFERROR(), NOT(), OR(), SWITCH(), TRUE(), FALSE()Math and Statistical Functions: DIVIDE(), SUM(), SUMX(), AVERAGE(), AVERAGEX(), COUNT(), COUNTBLANK(), COUNTROWS(), COUNTX(), DISTINCTCOUNT(), MAX(), MAXX(), MEDIAN(), MEDIANX(), MIN(), MINX(), RANKX()Table manipulation functions: CROSSJOIN(), DATATABLE(), NATURALINNERJOIN(), VALUES()Text functions: CONCATENATEX(), FIND(), LEFT(), LEN(), MID(), REPLACE(), SEARCH(), TRIM(), VALUE()Time intelligence functions: DATEADD(), DATESBETWEEN(), DATESMTD(), DATESQTD(), DATESYTD(), PARALLELPERIOD(), SAMEPERIODLASTYEAR(), TOTALMTD(), TOTALQTD(), TOTALYTDCourse OutlineGetting started with DAXWhat is DAX?Basics of DAX syntaxCreating a calculated columnCreating a calculated measureCreating a calculated tableDifferences in evaluation contextRules of evaluationWorking with variablesCommenting your codeTesting your codePerforming basic calculationsImplicit measuresAdding quick measuresDoing basic mathUsing logic in your calculationsAggregating and summarizing dataWorking with DAX data typesWorking with context in the data modelContext definedData modeling basicsIntroduction to dimensional modelingRelationships and their effect on the evaluation contextGetting data from other tables using RELATED and RELATEDTABLEModifying the context using CALCULATELooking up data without using relationshipsPerforming more advanced calculationsHandling errors gracefullyUsing DAX iterator functionsUsing table manipulation functionsTroubleshooting your calculations using the Performance Analyzer and DAX StudioWorking with timePerforming date calculationsWorking with date tablesGenerating a date table with the CALENDAR() functionDefining custom operating periodsYTD, QTD, and MTD calculationsCustom to-date calculationsFinding year-over-year changeFinding moving averagesEnhancing the user experienceControlling visibility of your measuresUsing What-if parametersAdding bandingUsing DAX to provide row-level security
Overview
Taught by
ONLC Training Centers