Skip to content

Latest commit

 

History

History

irs-w2-specification

date export_on_save html print_background
2022-04-21
html
true
embed_local_images embed_svg offline
true
true
false
false

IRS W-2 Specification Example

Document Summary

This example demonstrates two methods for extracting tables from a PDF document using Microsoft Excel Power Query or Microsoft Power BI Desktop.

  1. The PDF.Tables method is demonstrated in the QueryIRSW2AppendixF and QueryIRSW2AppendixG queries.
  2. The XML.Document method is demonstrated in the QueryIRSW2RecordTypes query.

Build Environment

Data Sources Used

Documentation Tools

Platform OS and Tools

Power BI Parameters

ParamIRSW2SpecificationPDF

The location of the IRS W-2 specification PDF document.

ParamIRSW2SpecificationXML

The location of the IRS W-2 specification PDF-XML document.

Power BI Queries

QueryIRSW2AppendixF

A query that imports a PDF document and creates a table from Appendix F found in the IRS W-2 specification.

QueryIRSW2AppendixG

A query that imports a PDF document and creates a table from Appendix G found in the IRS W-2 specification.

QueryIRSW2RecordTypes

A query that imports a PDF-XML document and creates a table from the W-2 record types and their field specifications that are found in sections 4.5 through 4.13 of the IRS W-2 specification.