Create an As Of Date Balance Report with Finance Logging and Tableau
Create an As Of Date balance report in Tableau to allow finance users to review balances
of top-level financial records by a date set by the user. The Tableau report uses finance balance
snapshot data exported as a spreadsheet from Salesforce Billing. (Salesforce Billing Managed Package)
Required Editions
Available in: Salesforce Billing Winter ’21 and later
In this example, you have already exported your finance balance snapshot data from Salesforce
into an external spreadsheet file. You want to build a report that tracks Account, Reference
Entity, Reference Entity Type, Currency ISO Code, Balance, Total Amount, and Transaction
Date.
In Tableau, open a new workbook.
Bring in your finance balance snapshot data from an exported file.
Go to Data, and then select New Data Source.
Select your spreadsheet type and then open your file.
Add the dimensions and measures for your report.
Set Balance and Total Amount with Tax as discrete dimensions.
Set Transaction Date as an exact date and a discrete dimension.
Create an As of Date parameter that allows you to input a date value and return the latest
record as of the entered date. Enter the following parameter values.
Name: Select Date
Data Type: Date & Time
Allowable Values: All
On your parameter, select Show Parameter Control.
This option lets you input values for the parameter.
Create a calculated dimension field with logic that evaluates whether the record's
transaction date falls before or after the As Of Date parameter. This setting allows you to
filter for only records up to the As Of Date. The calculated dimension field has the following
values.
Name: Is On or Before As Of Date
[Transaction Date] <= [As Of Date]
Add your calculated dimension as a filter and set
its
value to True.
Create a calculated dimension field with logic that evaluates whether a record on your
reference entity is the latest record relative to the As Of Date. The calculated dimension has
the following values.
Name: Is Latest Record
Logic:
if([Transaction Date])=({fixed[Reference Entity],[Is On or Before As Of Date]: MAX([Transaction Date])})
then
true
else
false
END
Add the Is Latest Record field as a filter and set
its
value to True.
You can now pass your As of Date input parameter and see the latest balance for a record
of your reference entity as of that date. You can also filter out reference entities where the
balance is already settled by filtering against balances of zero.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.