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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Kalyani22
Contributor II
Contributor II

How to get missing Months without a date column

I have Table

T1:

Month, sales

Jan,300

Feb,500

May,600

] Now I want missing months march and April with previous month sales

 

Labels (1)
1 Reply
TauseefKhan
Creator III
Creator III



Hi @Kalyani22,

SET vNull = NULL();

T1:
Load
Month,
sales
Inline [
Month, sales
Jan,300
Feb,500
May,600
];

AllMonths:
Load * Inline [
Month, MonthNum
Jan, 1
Feb, 2
Mar, 3
Apr, 4
May, 5
Jun, 6
Jul, 7
Aug, 8
Sep, 9
Oct, 10
Nov, 11
Dec, 12
];


Left Join
Load
Month,
sales
Resident T1;
Drop Table T1;

Apply sort by expression on Month field and use MonthNum field.

******Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.****