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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creation of Age buckets in backend script

Hi All,

Two Facts DTL_FCT and T_FCT have small fields PolicyID,ClaimNum  and create linktable name(pol_clm) for those two commonfields in qlikview.

EX: 122|56345

I have Claim_PY_Dates(20140101,20140102),Amounts in DTL_FCT  and Age in T_FCT. In original data Age field is like( 1,2,3...70) etc.

How to join these in qlikview from two different tables and create a conditional flag on Age. Agestarts with  (0-10) in to one group and (20-30) into other group and above 30 comes into another bucket

1.Calculate sum(Amounts) group by conditional flag of Age??.

Output:

Jan'13 - Dec'13Amount %
0-108.0%
11-205.0%
21-303.0%
30 >6.0%
Jan'14 - Dec'14Amount %
0-107.0%
11-202.0%
21-301.0%
30 >9.0%

Please,suggest how to develop in back end script ?? in a transform layer to make the make front end calculations easier??Please,provide sample if any??

0 Replies