Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Community Office Hours: Join us on July 9th, 2025 - REGISTER HERE!
cancel
Showing results for 
Search instead for 
Did you mean: 
olenedderhoff
Contributor II
Contributor II

Variable Month in E-Mail Subject and Text

I am sending out a weekly Report via the Reporting Service and want to include the current month inside of the title and text of the Mail. Is there any automated way of doing this like:

Bonus Report <Month>?

Labels (2)
5 Replies
F_B
Specialist II
Specialist II

Hi @olenedderhoff ,

are you sending reports using Subscription, Tabular Reporting or Appllication Automation?

olenedderhoff
Contributor II
Contributor II
Author

I am using tabular reporting via the Excel Add-In and create the Report in the Reporting Section of my App.

diegozecchini
Specialist
Specialist

Hi!
You can create a variable, e.g., vCurrentMonth, and set its expression to display the current month dynamically. You can use Date(Today(), 'MMMM') to get the current month in full name (e.g., "October").

Then when configuring the email subject or body in your Reporting Section, you can reference the variable you created:

In the subject line of the report, include $(vCurrentMonth) where you want the month to appear. For example:

Bonus Report $(vCurrentMonth)
This will automatically replace $(vCurrentMonth) with the current month name in both the subject line and body of the email when the report is sent.

Run a test to ensure that $(vCurrentMonth) correctly resolves to the current month. This should now automatically update every time the report is generated.

olenedderhoff
Contributor II
Contributor II
Author

With these Setups:

 

let vCurrentMonth = Date(Today(), 'MMMM');

 

olenedderhoff_3-1729856513405.png

olenedderhoff_1-1729856462910.png

I unfortunately get this result in the Mail:

olenedderhoff_4-1729856556719.png

So this approach does not work.

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @olenedderhoff 

There is no way to currently get variables into email subject and text when using Tabular Reporting solution for now.

Sorry

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.