Creating Custom Calculations in Excel Reports Using Mail & Deploy?
You want to create an Excel report using Mail & Deploy. Specifically, you have a table spanning columns A to K and need Column G to display the result of Column I × Column B, instead of using the result directly from the Qlik app.
Solution:
While the calculation you are looking for is not directly performed in Qlik, you can achieve it by combining data retrieval with custom Excel formulas.
Steps to Implement the Custom Calculation:Retrieve Data from Qlik Sense:
Use the Mail & Deploy Designer to retrieve the specified columns (A to K) from the Qlik app into your Excel report.
Ensure that all the required columns, including Column I and Column B, are included in the report data
2. Insert a Custom Formula in Excel:
In the Excel template, navigate to Column G and insert the formula: =I2 * B2
This assumes that the data starts in Row 2. Adjust the row number as needed.
Drag the formula down for all rows to calculate the desired result dynamically.
3. Configure the Designer to Retain the Formula:
In the Mail & Deploy Designer, ensure that the formula in Column G is preserved during report generation
Use the "Keep Cell Formula" setting to avoid overwriting the formula when new data is added.
Tips for Optimal Results:
If your report contains a large dataset, consider testing the formula in a small sample before generating the full report.
Use named ranges or dynamic table references in Excel for easier management of formulas.