Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Jaden
Contributor III
Contributor III

Dividing a total value over 12 months

Hi all,

I have a question that revolves around creating months and attaching a value to them.

  • What I have: 
    • Start Date
    • End Date (12 months in the future)
    • Estimated Volume
  • What I need:
    • To create the 12 months between these two dates and add (Estimated Volume / 12) to these records.

For example:

Start DateEnd DateEstimated Volume
1/1/202512/1/2025120

 

Taking the above and turning it into this:

Month YearEstimated Monthly Volume
Jan-2510
Feb-2510
Mar-2510
Apr-2510
May-2510
Jun-2510
Jul-2510
Aug-2510
Sep-2510
Oct-2510
Nov-2510
Dec-2510

 

Any advice would be appreciated. Thank you.

Labels (2)
1 Solution

Accepted Solutions
Jaden
Contributor III
Contributor III
Author

After much research, I found a solution to this issue using Crosstables. See here:

Solved: Equally distribute the Total Value across months b... - Qlik Community - 655637

View solution in original post

2 Replies
marcus_sommer

Maybe something like this:

t: load
    date(addmonths(StartDate, iterno() -1), 'MMM-YY') as MonthYear,
    Volume / 12 as Volume
from Source while iterno() <= 12;

Jaden
Contributor III
Contributor III
Author

After much research, I found a solution to this issue using Crosstables. See here:

Solved: Equally distribute the Total Value across months b... - Qlik Community - 655637