DataRails formulas are Excel formulas that users place within Excel cells to initiate data extraction.
The most recognized DataRails formula is "DR.GET()". To create a Datarails formula, please ensure that you have the necessary Datarails function added to your spreadsheet. To read more about Datarails formulas and Datarails functions, please refer to this article.
Once the function is in the workbook, you can create formulas that will update your report dynamically. To do this, you will use Formula Builder. There are two ways to open it:
Open with Right Click
- Right click the cell where you added the function.
- Select Datarails > Functions > Formula Builder. The **Formula Builder ** dialog opens.
Open from the Datarails Ribbon
- Click Functions.
- Select Formula Builder
Use Formula Builder to Create Dynamic Formulas
In this example, we’re creating a dynamic Cash Flow report for Jan and Feb of the given year.
- Open Formula Builder.
- Add the elements you want e.g.,
- Date in the Axis box. You will see grand totals for each date period.
- Category in the Legend box.
- Value Type. Add to the Axis Box. In this Cash Flow report, we’ve added a filter to include only ‘Ending Balance’.
- Next, copy the formula into Excel. Right click a cell with data and click Copy to Clipboard. Your formula will look something like this:
- =DR.GET (CashFlow,"[Period]", DR.DATE(“01/31/2021”),"[Value Type]", “Ending Balance”,"[Title]",“Accounts Payable”)
- To make the formula dynamic, replace hard-coded data with cell references in your report (i.e. DR.DATE("1/31/2021") or "Accounts Payable" can be replaced with the cell reference).
Example for columns Jan 2021 and Feb 2021.
The bold cell references are now dynamic. Note that the references are ‘locked’ ($).
=DR.GET (CashFlow,"[Period]", DR.DATE(D6),"[Value Type]", "Ending Balance","[Title]", A11
=DR.GET (CashFlow,"[Period]", DR.DATE(E6),"[Value Type]", "Ending Balance","[Title]", A12).
- To update formulas, click Refresh on the ribbon.
- Check your values before moving on. Correct the cell references as needed.
- Copy the cells for both columns to include all the categories in the report.
Troubleshoot
Problem
I see the word “Missing” in a cell.
Solution
Click Refresh to update the functions in the report.
Understanding Datarails Formulas / Functions
DR.GET stands for Datarails
GET is the syntax for the function.
CashFlow is the name of the function
Parameters are the rest of the formula, and because they use cell references, they are dynamic. You can have as many parameters as needed.
Here’s a breakdown of the sample function used in this article.
=DR.GET (CashFlow,"[Period]", DR.DATE(D6**),"[Value Type]", "Ending Balance","[Title]", **A11)
[Period]", DR.DATE(D6**),"[Value Type]", "Ending Balance","[Title]", **A11
Formulas for QTD, YTD and Rolling Month
Replace DR.GET with the relevant period.
Aggregation Period | Replace DR.GET With | Example |
---|---|---|
Quarter | DR.QTD | DR.QTD (CashFlow,"[Period]", DR.DATE(D$6),"[Value Type]", “Ending Balance”,"[Title]", $A11) |
Year | DR.YTD | DR.YTD (CashFlow,"[Period]", DR.DATE(D$6),"[Value Type]", “Ending Balance”,"[Title]", $A11) |
Rolling Month | DR.ROLLINGMONTH | DR.ROLLINGMONTH (CashFlow,"[Period]", DR.DATE(D$6),"[Value Type]", “Ending Balance”,"[Title]", $A11) |
The Rolling Month default is 12 months, unless you change it in the configuration.
Missing Functions
When you change data, restructure layouts, or add new dimensions, the data model needs to be updated. If there are missing functions or formulas, when you click Refresh a dialog will show listing the items that not connected.
- To refresh and make the connections, click Connect / Connect All.
- Click Close.
Aspose Functions
Datarails supports Aspose functions. The Aspose Cells' Formula Calculation Engine allows you to set, read and calculate the results using many formulas and functions. Click here to see the Aspose documentation for the list.
© Datarails Ltd. All rights reserved.
Updated
Comments
0 comments
Article is closed for comments.