Answers.Body: <p>I prefer to use <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterReportVar/" rel="nofollow noreferrer">hook_civicrm_alterReportVar</a>(Instead of making copy of existing report and adding code) to add columns or filters to any report in $vars for $varType == 'Column'.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-22T20:17:51.710Z
Answers.Text: Do you have an example you could link to?
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-21T21:05:56.650Z
Answers.LastActivityDate: 2020-02-21T21:05:56.650Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>We run CiviCRM 5.20.2 on Joomla 3.9.15</p>
  
  <p>We use Reports - Donation Reports - Sybunt<br>
  We need to be able to select in the Columns area:
  •   Nickname
  •   Do not mail / contact
  •   Deceased
  •   Postal Greeting</p>
  
  <p>Is a custom report necessary? If so how do I use the SYBUNT report as a template to copy?</p>
  
  <p>Thank you!</p>
  
Tags: <civireport><custom-reports>
Title: Add columns to SYBUNT report
ThreadText: # Add columns to SYBUNT report
  
  (Asked by: username_0 on 2020-02-21)
  
  We run CiviCRM 5.20.2 on Joomla 3.9.15
  
  We use Reports - Donation Reports - Sybunt  
  We need to be able to select in the Columns area:
  • Nickname
  • Do not mail / contact
  • Deceased
  • Postal Greeting
  
  Is a custom report necessary? If so how do I use the SYBUNT report as a template to copy?
  
  Thank you!
  
  **Tags:** civireport, custom-reports
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-21. Score: 1
  
  I prefer to use [hook\_civicrm\_alterReportVar](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterReportVar/)(Instead of making copy of existing report and adding code) to add columns or filters to any report in $vars for $varType == 'Column'.
  
  > **Comments:**
  > **username_2**: Do you have an example you could link to?  
  
  ---
  
  