Skip to content

newmans99/Qlik-Financial-Rollup-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Qlik Financial Rollup Example

This is an example implementation of a dynamic Chart of Accounts measure generator for Qlik Sense. You can modify the COA and the Data portions to connect to your data sources. This is particularily helpful when building a "consolidation" type chart of accounts or replacing "Unary Operators in Parent-Child Dimensions" in MSAS as defined here.

Results

Leveraging your Chart of Accounts (or other Hierachy), you end up with a series of variables that can be leveraged in Master Items or directly in your visualzations. Using the example, you will can get the following output (legend: blue = add, red = minus, lightblue = skip, yellow = multiply, and green = divide) with a simplified chart of accounts (below).

Financial Example

from the following Chart of Accounts:

AccountCode ParentCode NodeName Rollup
4010 4001 Product Sales +
4020 4001 Services Sales -
4030 4001 Training Sales *
4115 4001 Website Sales /
4202 4200 Sales Deductions Discounts +
4204 4200 Sales Deductions Returns +
4206 4200 Sales Deductions Promotions ~
5001 5000 Stuff +
4001 4000 Gross Revenue +
4200 4000 Sales Deductions -
4000 0 Revenue +
5000 0 Cost of Goods Sold -
0 Gross Margin

With variables automatically being generated that look like this:

vExt_Gross_Margin = (+(+(((+SUM({$<Node={"4010"}>}Values)-1*SUM({$<Node={"4020"}>}Values))*(SUM({$<Node={"4030"}>}Values)))/(SUM({$<Node={"4115"}>}Values)))-1*(+SUM({$<Node={"4202"}>}Values)+SUM({$<Node={"4204"}>}Values)))-1*(+SUM({$<Node={"5001"}>}Values)))

Which roughly translate to:

Gross Margin = Revenue - COGS

Revenue = Gross Revenue - Sales Deductions

Gross Revenue = ((Product Sales - Services Sales) * Training Sales) / Web Sales

Sales Deductions = Sales Deductions Discounts + Sales Deductions Returns EXCLUDING Sales Deductions Promotions

COGS = Account Code = 5001

Implementation

For Qlik Sense Desktop:

  1. Download the [Financial Rollup Example.qvf](https://github.com/newmans99/Qlik-Financial-Rollup-Example/raw/master/Financial%20Rollup%20Example.qvf) file.
  2. Save the downloaded file to your "...\My Documents\Qlik\Apps" folder.
  3. From Qlik Sense Desktop Hub, open the "Financial Rollup Example" app and interact/review the Financial Rollup Example Sheet.

For Qlik Sense Server:

  1. Download the [Financial Rollup Example.qvf](https://github.com/newmans99/Qlik-Financial-Rollup-Example/raw/master/Financial%20Rollup%20Example.qvf) file.
  2. From QMC, upload the downlaoded app.
  3. From Qlik Sense Hub, open the "Financial Rollup Example" app and interact/review the Financial Rollup Example Sheet.

Application Load Script Logic Overview:

The load script has this basic flow...

  1. Data Load - Bring in your data, key is that your data has a hiearchy of a Node, ParentNode, NodeName, and a Rollup Operator. The Data needs to have a Node and some type of Value or Amount column. Currently, the example app has an inline load, allowing for a transportable example.
  2. Transform - The logic here is to transform your hiearchy to understand the relationship between parent and children nodes.
  3. Create Variables - This section loops through all of the nodes, starting at the lowest (leaf) level, and working up the hiearchy. As it loops, it generates variables which can be used in your visualizations or in Master Items.
  4. Clean Up - Like all good Qlik Applications, you need to do a little clean up. Such as removing un-needed variables, dropping tables, and instructing the app to only allow certain columns for the application search capabilities.

Please help...

Please provide any comments or suggestions, specifically, I am looking for errors or problems in the load scriipt.

Remaining items, I would like to add for future versions...

See Github Issues

License

Released under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published