Microsoft Excel, Microsoft Dynamics GP, and Microsoft Power Tools Series!
You already use Microsoft Excel, so why not make it a valuable reporting tool? These 3 GPUG Academy classes will give you hands-on experience creating reports for Receivables Management, Payables Management, and Sales Order Processing. After completing each one of these classes you will be the Business Intelligence Hero of your teams. This class is open to all GP users.
2. Instructions
• Have a question?
o Ask
o Post in chat
• Need to mute?
o Click the microphone
(make sure you’ve
entered your audio pin)
• Have feedback?
o We’ll send you a survey
• Want CPE credit?
o Request via survey
2
6. Introductions
• Please introduce yourself, including:
o Your name
o Your company
o Your role
o Which version of Dynamics & Excel
o One of your objectives for today’s class
o Favorite Candy
6
7. What we’ll build today
• An Aged Trial Balance
• Sales Analysis on Customers based on Net
Revenue
7
8. Objectives for Class
• Learn basic features of Pivot Tables & Pivot
Charts
• Understand options for extracting data from
Microsoft Dynamics GP
• Learn basic features of Microsoft Power
Query
8
23. Customer Master Records
• Customer status (active, inactive, etc.)
• Hold Status
• Class ID
• User Defined Fields / Categories
o Credit Limit
o Comment Field 1 & 2
o User Defined Field 1 & 2
• Balance
24. Receivables Transaction Records
• Document Type
• Process Hold Status
• Void Status
• Posting Status
• Balance
• Dates
• Master Record fields
25. How Nested “IF” statements work
25
Is this a Return, If
yes then Negative
and stop
Is this a Payment,
If yes then
Negative and stop
Is this a Credit
Memo, If yes then
Negative and stop
Otherwise it is
Positive
26. Excel Formulas Used
• =IF([@[Days Past Due]] < 0,"Current",
IF([@[Days Past Due]] < 101, "Due Less than
100 Days Ago", IF([@[Days Past Due]]
<201,"Due Less than 200 Days Ago","Very
Past Due")))
• =IF([@[Document Type]] = "Payment",-
[@[Current Trx Amount]],IF([@[Document
Type]] = "Return",-[@[Current Trx Amount]],
IF([@[Document Type]] = "Credit",-
[@[Current Trx Amount]], [@[Current Trx
Amount]])))
• =[@Today]
26
5/26/2014Footer Text
27. Resources for Views
• Microsoft
o Views that come with Microsoft Dynamics GP
• Share My Code / GPUG
o www.GPUG.com
• Victoria Yudin
o www.victoriayudin.com
• Mark Polino
o http://mpolino.com/gp/category/sqlscript/
27
28. View Parts
• CREATE VIEW view_Payables_Payments AS
• /**************************************************************** view_Payables_Payments Created Sep 11,
2009 by Victoria Yudin - Flexible Solutions, Inc. For updates see http://victoriayudin.com/gp-reports/
Shows all posted Payables payments in Functional Currency only Tables used: PM00200 - Vendor Master
PM20000 – Open Transactions PM30200 - Historical Transactions Updated on Jan 18, 2011 to add
Currency ID, User Who Posted and User Who Modified
****************************************************************/
• SELECT P.VENDORID Vendor_ID, V.VENDNAME Vendor_Name, V.VNDCHKNM
Vendor_Check_Name, CASE P.PYENTTYP WHEN 0 THEN 'Check' WHEN 1 THEN
'Cash' WHEN 2 THEN 'Credit Card' WHEN 3 THEN 'EFT' ELSE 'Other' END
Payment_Type, CASE WHEN P.PYENTTYP in (0,1,3) THEN P.CHEKBKID ELSE '' END
Checkbook_ID, CASE P.PYENTTYP WHEN 2 THEN P.CARDNAME ELSE '' END
Credit_Card_ID, P.DOCDATE Document_Date, P.PSTGDATE GL_Posting_Date,
P.VCHRNMBR Voucher_Number, P.DOCNUMBR Document_Number, P.DOCAMNT
Functional_Amount, P.TRXSORCE Transaction_Source, P.CURNCYID Currency_ID,
P.PTDUSRID User_Who_Posted, P.MDFUSRID User_Who_Modified
• FROM (SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE, PYENTTYP, CARDNAME,
CURNCYID, PTDUSRID, MDFUSRID FROM PM30200 UNION ALL SELECT VENDORID,
DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR, DOCAMNT, VOIDED, TRXSORCE,
CHEKBKID, PSTGDATE, PYENTTYP, CARDNAME, CURNCYID, PTDUSRID, MDFUSRID
FROM PM20000) P INNER JOIN PM00200 V ON P.VENDORID = V.VENDORID
• WHERE P.DOCTYPE = 6 AND P.VOIDED = 0
• /** the following will grant permissions to this view to DYNGRP, leave this section off if you do not want
to grant permissions **/
• GO GRANT SELECT ON view_Payables_Payments TO DYNGRP
28
29. When using in PowerView or PowerQuery
• CREATE VIEW view_Payables_Payments AS
• /**************************************************************** view_Payables_Payments Created Sep 11,
2009 by Victoria Yudin - Flexible Solutions, Inc. For updates see http://victoriayudin.com/gp-reports/
Shows all posted Payables payments in Functional Currency only Tables used: PM00200 - Vendor Master
PM20000 – Open Transactions PM30200 - Historical Transactions Updated on Jan 18, 2011 to add
Currency ID, User Who Posted and User Who Modified
****************************************************************/
• SELECT P.VENDORID Vendor_ID, V.VENDNAME Vendor_Name, V.VNDCHKNM
Vendor_Check_Name, CASE P.PYENTTYP WHEN 0 THEN 'Check' WHEN 1 THEN
'Cash' WHEN 2 THEN 'Credit Card' WHEN 3 THEN 'EFT' ELSE 'Other' END
Payment_Type, CASE WHEN P.PYENTTYP in (0,1,3) THEN P.CHEKBKID ELSE '' END
Checkbook_ID, CASE P.PYENTTYP WHEN 2 THEN P.CARDNAME ELSE '' END
Credit_Card_ID, P.DOCDATE Document_Date, P.PSTGDATE GL_Posting_Date,
P.VCHRNMBR Voucher_Number, P.DOCNUMBR Document_Number, P.DOCAMNT
Functional_Amount, P.TRXSORCE Transaction_Source, P.CURNCYID Currency_ID,
P.PTDUSRID User_Who_Posted, P.MDFUSRID User_Who_Modified
• FROM (SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE, PYENTTYP, CARDNAME,
CURNCYID, PTDUSRID, MDFUSRID FROM PM30200 UNION ALL SELECT VENDORID,
DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR, DOCAMNT, VOIDED, TRXSORCE,
CHEKBKID, PSTGDATE, PYENTTYP, CARDNAME, CURNCYID, PTDUSRID, MDFUSRID
FROM PM20000) P INNER JOIN PM00200 V ON P.VENDORID = V.VENDORID
• WHERE P.DOCTYPE = 6 AND P.VOIDED = 0
• /** the following will grant permissions to this view to DYNGRP, leave this section off if you do not want
to grant permissions **/
• GO GRANT SELECT ON view_Payables_Payments TO DYNGRP
29
30. Review of Objectives for Class
• Learn basic features of Pivot Tables & Pivot
Charts
• Understand options for extracting data from
Microsoft Dynamics GP
• Learn basic features of Microsoft Power
Query
• An Aged Trial Balance
• Sales Analysis on Customers based on Net
Revenue
30
31. Q&A
• Belinda Allen
• Smith & Allen Consulting, Inc.
• Belinda@SACI.com
• @BelindaTheGPcsi
31