Lab 5
Lab 5
Technique
• Use SQL to transform purchase card data into a common data model
Software needed
• DB Browser for SQLite
SELECT COUNT(Amount)
FROM PCARD_FY2018;
SELECT SUM(Amount)
FROM PCARD_FY2018;
215
10. Open your PCARD_FY2018 database from Part 1 in DB Browser for SQLite.
11. Click the Execute SQL tab.
12. Use the SQL code below as a template to remap the common elements. As you write
the SQL code, replace [Table] with the name of your table and add a line for each
mapping from the table above where [Field/Value] elements with either the fields or
values from your source data table. These may include:
a. The name of the field/attribute you’re referencing (e.g., [TransactionDate]);
b. Double quotes (“” or ’’ depending on the version of SQL) to leave the field blank;
c. A specific value in quotes (e.g., “2020” AS Purchase_Order_Fiscal_Year to add the
value 2020 for the fiscal year or “USD” to add a local currency); or
d. An expression to combine values (e.g., [First_Name]&” “&[Last_Name] AS
Entered_By or [First_Name] ||’ ’|| [Last_Name]AS Entered_By
SELECT
[Field/Value] AS Purchase_Order_ID,
[Field/Value] AS Purchase_Order_Date,
[Field/Value] AS Purchase_Order_Fiscal_Year,
. . .
FROM[TABLE];
13. Run the query by clicking the Play icon. Correct any errors in your SQL code if it
didn’t run correctly.
14. Take a screenshot (label it 5-1B).
216
15. Click the Save Results button and choose Save as view.
Q2. How does mapping the data to a common data model make it easier to perform
analysis in the future?
End of Lab
Technique
• Use Tableau visualize purchase card data based on the Audit Data Standard
Software needed
• Tableau
217
Q1. What do you think would happen if you didn’t update the data types in Tableau
before you perform your analysis?
218
End of Lab
Company summary
You have rotated into the internal audit department at a mid-sized manufacturing company.
Your team is still using company email to send evidence back and forth, usually in the form
of documents and spreadsheets. There is a lot of duplication of these files, and no one is
quite sure which version is the latest. You see an opportunity to streamline this process
using OneDrive.
Technique
• Gather documents, explore document history and revisions
Software needed
• A modern web browser
219
7. Add the email address of one of your classmates or your instructor, as directed.
Choose Anyone with a link can edit from the sharing options, then click Send.
8. Take a screenshot (label it 5-3A).
Q1. What advantage is there to sharing files in one location rather than emailing
copies back and forth?
Q2. Explore the two folders you just uploaded. What kinds of documents and files
do you see?
Q3. How do you think these files can be used for data analysis?
End of Lab
220
3. Return to your OneDrive DA Audit Working Papers folder, and upload the Audit Plan
into your Master Audit File and the User_Listing into your Current Audit File. You will
be prompted to Replace or Keep Both files. Click Replace for each.
4. Take a screenshot (label it 5-4A).
End of Lab
Technique
• Review the audit plan, look for procedures involving data, and identify the locations of
the data.
Software needed
• A modern web browser
221
3. Use the Yellow highlighter to identify any master or transaction tables, such as
“Vendors” or “Purchase Orders.”
4. Use the Green highlighter to identify any fields or attributes, such as “Name” or
“Date.”
5. Use the Blue highlighter to identify any specific values or rules, such as “TRUE,”
“January 1st,” “Greater than . . .”
6. Create a new spreadsheet called Audit Automation Summary in your Master Audit File
and summarize your highlighted data elements from the three audit action sheets. Use
the following headers:
Q1. Read the first audit action sheet. What other data elements that are not listed in
the procedures do you think would be useful in analyzing this account?
End of Lab
Technique
• Review the audit plan, identify procedures that must be completed manually, and iden-
tify those that can be automated and scheduled.
• Also determine when the procedures should occur.
222
Software needed
• A modern web browser
Auto/Manual Frequency
3. For each element and rule, determine whether it requires manual review or can be per-
formed automatically and alert auditors when exceptions occur. Add either “Auto” or
“Manual” to that column.
4. Finally, determine how frequently the data should be evaluated. Indicate “Daily,”
“Weekly,” “Monthly,” “Annually,” or “During Audit.” Think about when the data are
being generated. For example, transactions occur every day, but new employees are
added every few months.
5. Take a screenshot (label it 5-6A).
6. Save and close your file.
End of Lab
223