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: 
kishorj1982
Creator II
Creator II

Removing synthetic key for calendar dates

Hi All,

I have date field from differnet table on the top of that calendar fileds has been generated but when I am concatenating those fileds into 1 table and dropping those fields I am getting incorrect results

I have attached sample app for this please suggest.

Thanks

4 Replies
vinieme12
Champion III
Champion III

http://qlikviewcookbook.com/recipes/download-info/tutorial-using-common-date-dimensions/

https://community.qlik.com/thread/66717

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anil_Babu_Samineni

I have not seen any calendar on your Data model. And meantime, Fields are common first you need to do this. Like helps to you

https://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/

Best Anil, 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
kishorj1982
Creator II
Creator II
Author

In that case results are not matching

I have done with below

//Calendar:
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_VarianceSummary;
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_CustomerLedger;
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_GLSummary;
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_UnpostedInv;
//
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_UnpostedRc;
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_UnpostedVoidRc;
//
//Concatenate
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_UnpostedVoidInv;
//
//load
//Key,
//Month,
//MonthNum,
//MonthNum1,
//Year
//
//Resident
//AR_GLDetail;
//
//
//
//
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_VarianceSummary;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_CustomerLedger;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_GLSummary;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_UnpostedInv;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_UnpostedRc;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_UnpostedVoidRc;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_UnpostedVoidInv;
//DROP Fields Month,MonthNum,MonthNum1,Year From AR_GLDetail;

it seems we have diff granularity level in Key field(Composite key using 5 diff keys)

Anil_Babu_Samineni

I am not sure or may be not following of your explanation. Would you restrict code / script and try to explain here

Best Anil, 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