Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
pooja821
Creator
Creator

Data modelling for creating a table in specific format

Hi,

I need to create a table with data in some required format in order to compute one Metric.

I have Monthly Open HC corresponding to months as below (Column 3).

Month_YrYearly Open HCMonthly Open HC
Mar 2019061830
Apr 20196183061832
May 20196183061834
Jun 20196183061836
Jul 20196183061838
Aug 20196183061833
Sep 20196183061839
Oct 20196183055677

 

Based on this Column 3 I.e. Monthly Open HC, Yearly Open HC is computed. Yearly Open HC is nothing but last year end Monthly Open HC replicated to all the months of Yearly Open HC as shown above, i.e. 61830 got replicated to all the months as Yearly Open HC.

Now the problem I am facing is that if my Monthly Open HC for last year end i.e. for Mar2019 is 0 then as per functionality this zero value gets replicated as Yearly Open HC for all the months. i.e.

Month_YrYearly Open HCMonthly Open HC
Mar 201900
Apr 201900
May 201900
Jun 201903456
Jul 201906345
Aug 201902345
Sep 201904567
Oct 201908976

 

but ideally any first non zero value should get replicated for all the months as Yearly Open HC. i.e. 3456 should get replicated.

 

Kindly help on this pls. 

Labels (1)
0 Replies