ER Use horizontally expandable ranges to dynamically add columns in Excel reports (Part 1 - Design format)
The following steps explain how a user assigned to the system administrator or electronic reporting developer role can configure an Electronic reporting (ER) format to generate reports as OPENXML worksheets (Excel) files in which the required columns can be created dynamically as horizontally expandable ranges. These steps can be performed in any company.
To complete these steps, you must first complete these three task guides:
"ER Create a configuration provider and mark it as active"
"ER Use financial dimensions as a data source (Part 1: Design data model)"
"ER Use financial dimensions as a data source (Part 2: Model mapping)"
You must also download and save a local copy of the template with a sample report found here, Sample Financial Dimensions Web Service Report.
This procedure is for a feature that was added in Dynamics 365 for Operations version 1611.
Create a new report configuration
- Go to Organization administration > Electronic reporting > Configurations.
- In the tree, select
Financial dimensions sample model
. - Click Create configuration to open the drop dialog.
- In the New field, enter
Format based on data model Financial dimensions sample model
.- Use the model created in advance as the data source for your new report.
- In the Name field, type
Sample report with horizontally expandable ranges
.- Sample report with horizontally expandable ranges
- In the Description field, type
To make Excel output with dynamically adding columns
.- To make Excel output with dynamically adding columns
- In the Data model definition field, select Entry.
- Click Create configuration.
Design the report format
- Click Designer.
- Turn on the
Show details
toggle button. - On the Action Pane, click Import.
- Click Import from Excel.
- Click Attachments.
- Import the report`s template. Use Excel file that you downloaded for that.
- Click New.
- Click File.
- Close the page.
- In the Template field, enter or select a value.
- Select the downloaded template.
- Click OK.
- Add a new range to dynamically create Excel output with as many columns as you selected (in the user dialog form) for financial dimensions. Each cell for every column will represent a single financial dimension`s name.
- Click Add to open the drop dialog.
- In the tree, select
Excel\Range
. - In the Excel range field, type
DimNames
.- DimNames
- In the Replication direction field, select
Horizontal
. - Click OK.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<DimNames>: Horizontal
. - Click Move up.
- In the tree, select
Excel = "SampleFinDimWsReport"\Cell<DimNames>
. - Click Cut.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<DimNames>: Horizontal
. - Click Paste.
- In the tree, expand
Excel = "SampleFinDimWsReport"\Range<DimNames>: Horizontal
. - In the tree, expand
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical
. - In the tree, expand
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical
. - In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical
.- Add a new range to dynamically create Excel output with as many columns as you selected (in the user dialog form) for financial dimensions. Each cell for every column will represent a single financial dimension`s value for each reporting transaction.
- Click Add Range.
- In the Excel range field, type
DimValues
.- DimValues
- In the Replication direction field, select
Horizontal
. - Click OK.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<DimValues>
. - Click Cut.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Range<DimValues>: Horizontal
. - Click Paste.
- In the tree, expand
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Range<DimValues>: Horizontal
.
Map format elements to data sources
- Click the Mapping tab.
- In the tree, expand
model: Data model Financial dimensions sample model
. - In the tree, expand
model: Data model Financial dimensions sample model\Journal: Record list
. - In the tree, expand
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list
. - In the tree, expand
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Dimensions data: Record list
. - In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Range<DimValues>: Horizontal\Cell<DimValues>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Dimensions data: Record list\Code: String
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Range<DimValues>: Horizontal
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Dimensions data: Record list
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<Credit>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Credit: Real
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<Debit>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Debit: Real
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<Currency>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Currency: String
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<TransDate>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Date: Date
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<TransVoucher>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list\Voucher: String
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical\Cell<TransBatch>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Batch: String
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Range<TransactionLine>: Vertical
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Transaction: Record list
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical\Cell<Batch>
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list\Batch: String
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Range<JournalLine>: Vertical
. - In the tree, select
model: Data model Financial dimensions sample model\Journal: Record list
. - Click Bind.
- In the tree, expand
model: Data model Financial dimensions sample model\Dimensions setting: Record list
. - In the tree, select
model: Data model Financial dimensions sample model\Dimensions setting: Record list\Code: String
. - In the tree, select
Excel = "SampleFinDimWsReport"\Range<DimNames>: Horizontal\Cell<DimNames>
. - Click Bind.
- In the tree, select
model: Data model Financial dimensions sample model\Dimensions setting: Record list
. - In the tree, select
Excel = "SampleFinDimWsReport"\Range<DimNames>: Horizontal
. - Click Bind.
- In the tree, select
Excel = "SampleFinDimWsReport"\Cell<CompanyName>
. - In the tree, select
model: Data model Financial dimensions sample model\Company: String
. - Click Bind.
- Click Save.
- Close the page.