Day 11 data +
Day 11 data +
Exam DA0-001
Lesson 8
Explain Common Techniques for Data
Manipulation and Optimization
Topic
8A Functions to Manipulate Data
Use
5
Text Functions - Left, Right, Mid
Microsoft Excel Right Function to Extract the Last Four Characters (i.e., Digits) of the Social Security
Number (Used with permission from Microsoft.)
6
Text Functions - Upper, Lower & Proper
8
Parsing Strings for Information
Breaking Apart Product Number into Fields by Using Text to Columns and Delimiter in Microsoft
Excel (Used with permission from Microsoft.)
9
Parsing Strings for Information
Using Split Columns in Microsoft Power Query to Create Individual Names (Used with
permission from Microsoft.)
10
Date Functions
December 18,
2022
11
Date Functions
12
Date Functions
13
Date Functions
• NOW(): This function uses the computer system time to tell the
current date and time of a calculation. NOW() can tell you how
many days have elapsed from a given day, or how many days ahead.
• TODAY (): This function gives you the date, but not the time.
14
Logical Functions and Conditional Formatting
• IF(): Specifies a logical test to perform
• IFS(): Checks whether one or more conditions are met and returns a value that
corresponds to the first TRUE condition.
• AND(): Returns TRUE if all of its arguments are TRUE
• OR(): Returns TRUE if any argument is TRUE
• TRUE(): Returns the logical value TRUE
• FALSE(): Returns the logical value FALSE
• IFERROR(): Returns a value you specify if a formula evaluates to an error;
otherwise, returns the result of the formula
• NOT(): Reverses the logic of its argument
15
Logical Functions and Conditional Formatting
• IF(): Specifies a logical test to perform
Microsoft Excel IF Function for Shipping Status (Used with permission from
Microsoft.)
16
Aggregation and the Basic Types of Aggregate Functions
• SUM(): Will add all the records together to produce a total. You will see
this function used for amounts and quantities.
• COUNT(): Will count all the records as individual lines to produce a record
count.
• DISTINCT COUNT(): Will count all the records in that column but will only
count the field one time, even if it appears multiple times.
• AVERAGE(): Will total all the values in that column and then divide them
by the count of values.
• MAX(): Will give the largest value in that column.
• MIN(): Will give the smallest value in that column.
17
Aggregation and the Basic Types of Aggregate Functions
• COUNT(): Will count all the records as individual lines to produce a record count.
• DISTINCT COUNT(): Will count all the records in that column but will only count
the field one time, even if it appears multiple times.
Distinct Count DAX Measure and Table in Power BI (Used with permission from
Microsoft.) 18
System Functions
• Most reporting tools come packaged with some system functions
that you can use so that you do not manually have to track
information. These functions provide valuable insight to the people
who will read your reports.
• Some system functions might include the following:
• Page numbers
• File paths
• Refresh Date
19
Review Activity: Functions to Manipulate Data
1.Which function removes all non-printable characters? Which function trims leading
and trailing spaces? What type of function would we use to classify these as?
3.If you had a data set with a column for Full Name, and you needed columns for
First Name and Last Name, what action would you need to perform?
4. The TODAY function will provide and not provide what, respectively?
6. SUM, COUNT, DISTINCT COUNT, AVERAGE, MAX, and MIN are all what type of
function?
Topic
8B Common Techniques for Query
Use
Optimization
22
Parameterization
Screenshot of Parameters in Crystal Reports Parameter Prompt in Crystal Reports 2016 (Copyright © 2021 SAP
2016 (Copyright © 2021 SAP SE or an SAP SE or an SAP affiliate company. All rights reserved.)
affiliate company. All rights reserved.)
23
Indexing Data
24
Temporary Tables
Create Table Syntax for a Temporary Table in Temporary Table Found in Tempdb in Microsoft SQL
Microsoft SQL Server Management Studio (Used Server Management Studio (Used with permission
with permission from Microsoft.) from Microsoft.)
25
Sub Querying and Subsets of Information
27
Review Activity: Recode Data and Derived Variables and Duplicated Data
1.What can you create to optimize data load time and filter data to
certain criteria?
2. What fields are automatically indexed when they are created?
3. When does a temporary table stop being stored on the database server?
4. What is being created when querying another query?
5. What are the two types of query execution plans?
28
Data+ Exam DA0-001
Lesson 8A, 8B
Summary