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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating KPI for Debtor / Creditor Days

<body><p style="margin: 0cm 0cm 0pt;" >Hello,</span></span></span></p> <p style="margin: 0cm 0cm 0pt;" ></span></span></span></p> <p style="margin: 0cm 0cm 0pt;" >I am having problems with creating KPI's - I know how to extract the data from individual tables separately but am struggling to include them altogether in one chart due to joins or selections cancelling each other out because of different tables being used. See below for details. </span></span></span></p> <p style="margin: 0cm 0cm 0pt;" ></span></span></span></p> <p style="margin: 0cm 0cm 0pt;" >Any help would be much appreciated. </span></span></span></p> <p style="margin: 0cm 0cm 0pt;" >Thanks,</span></span></span></p> <p style="margin: 0cm 0cm 0pt;" >Conor</span></span></span></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;"></span></span></b></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Creditor Days</span></span></b></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Calculation:</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >All invoices paid within 30 days in a given period</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >----------------------------------------------------------------------</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >All invoices paid + Open invoices greater than 30 days old in a given period</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Logic:</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Example: January 2010</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext;" class="MsoTableGrid"> <tbody> <tr style="mso-yfti-irow: 0;"> <td width="139" valign="top" style="padding-right: 5.4pt; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; width: 104.4pt; padding-top: 0cm; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Desc</span></b></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Code</span></b></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">No.of documents</span></b></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">(BELNR)</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 1;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >All invoices paid </span></span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAK-AUGDT = */01/2010 </span>(or BSAK-CreditorClosedClearingMonthYear = Apr/2010)</span></span></p> <p style="margin: 0cm 0cm 0pt;" >BSAK-BLART = CF,CI,KR,RE</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">3466</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 2;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >All invoices paid within 30 days    </span></span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAK-AUGDT = */01/2010</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAK-BLART = CF,CI,KR,RE</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAK-AUGDT - BSEG-REINDAT between 1 and 30 incl</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">2689</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >Open Invoices &gt; 30 days</span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAK-AUGDT &gt; 31/01/2010</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAK-BUDAT &lt;= </span><st1:date year="2010" day="31" month="1">31/01/2010</span></st1:date></span></p> <p style="margin: 0cm 0cm 0pt;" >BSAK-BLART = CF,CI,KR,RE</span></p> <p style="margin: 0cm 0cm 0pt;" >+</span></p> <p style="margin: 0cm 0cm 0pt;" >BSIK-BLART = CF,CI,KR,RE</span></p> <p style="margin: 0cm 0cm 0pt;" >BSIK-BUDAT &lt;= </span><st1:date year="2010" day="31" month="1">31/01/2010</span></st1:date></span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >=</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >-</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >No.of invoices where </span><st1:date year="2010" day="31" month="1">31/01/2010</span></st1:date> &ndash; BSIK-BLDAT &lt; 31</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >=</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >1214</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >+</span></p> <p style="margin: 0cm 0cm 0pt;" >37</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >= 1251</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >-</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >440</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">= 811</span></b></p> </td> </tr> </tbody> </table> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >2689 / (3466 + 811) = 62.87%</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p><b style="mso-bidi-font-weight: normal;"><br clear="all" style="page-break-before: always;" /></span></b></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Debtor Days</span></span></b></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Calculation:</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >All debt collected within 30 days in a given period</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >----------------------------------------------------------------------</span></p> <p align="center" style="margin: 0cm 0cm 0pt; text-align: center;" >All debt collected + Open debt greater than 30 days old in a given period</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Logic:</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >Example: February 2010</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext;" class="MsoTableGrid"> <tbody> <tr style="mso-yfti-irow: 0;"> <td width="139" valign="top" style="padding-right: 5.4pt; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; width: 104.4pt; padding-top: 0cm; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Desc</span></b></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">Code</span></b></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: #ccffff; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">No.of documents</span></b></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">(BELNR)</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 1;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >All debt collected </span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAD-AUGDT = */02/2010 </span></p> <p style="margin: 0cm 0cm 0pt;" >BSAD-BLART = RR,RV,DR</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">2649</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 2;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >All debt collected within 30 days </span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAD-AUGDT = */02/2010</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAD-BLART = RR,RV,DR</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAD-AUGDT &ndash; BSAD-BLDAT between 1 and 30 incl</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">1735</span></b></p> </td> </tr> <tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;"> <td width="139" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 104.4pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >Open debt &gt; 30 days</span></p> </td> <td width="385" valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; width: 289.05pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >BSAD-AUGDT &gt; 28/02/2010</span></p> <p style="margin: 0cm 0cm 0pt;" >BSAD-BUDAT &lt;= </span><st1:date year="2010" day="28" month="2">28/02/2010</span></st1:date></span></p> <p style="margin: 0cm 0cm 0pt;" >BSAD-BLART = RR,RV,DR</span></p> <p style="margin: 0cm 0cm 0pt;" >+</span></p> <p style="margin: 0cm 0cm 0pt;" >BSID-BLART = RR,RV,DR</span></p> <p style="margin: 0cm 0cm 0pt;" >BSID-BUDAT &lt;= </span><st1:date year="2010" day="28" month="2">28/02/2010</span></st1:date></span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >=</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >-</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >No.of debt where </span><st1:date year="2010" day="28" month="2">28/02/2010</span></st1:date> &ndash; BSID-BLDAT &lt; 31</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >=</span></p> </td> <td valign="top" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: #ece9d8; padding-left: 5.4pt; padding-bottom: 0cm; border-left: #ece9d8; padding-top: 0cm; border-bottom: windowtext 1pt solid; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p style="margin: 0cm 0cm 0pt;" >3190</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >+</span></p> <p style="margin: 0cm 0cm 0pt;" >1132</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >=4322</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >-</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >2194</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" ><b style="mso-bidi-font-weight: normal;">=2128</span></b></p> </td> </tr> </tbody> </table> <p style="margin: 0cm 0cm 0pt;" > </span></p> <p style="margin: 0cm 0cm 0pt;" >1735 / (2649 + 2128) = 36.32%</span></p> <p style="margin: 0cm 0cm 0pt;" > </span></p></body>

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Its hard to know where to start with such an open ended post. I think you would get more help if you could be more specific: what have you tried, what do you think might be going wrong, what you expected. I don't know what your question is.

I for one, would be happy to help, but I don't have enough to go on.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Jonathan,

You can see the code and logic of what I am trying to do. What I need is help as to how I can include all the above into one chart. One of the problems is my joins aren't perfect, in that when I select a date in BSAD, then values for BSAK are null. I maybe need to join by date as I am using posting and clearing dates on different tables.

In short I need guidance about how to go about this, how to join my tables and the best way to create my calculations (in the script or in the QVW's charts).

I hope this is a bit clearer.

Conor

suniljain
Master
Master

Dear Conor,

can you brief me about your requirement. I alredy work with SAP Finance and controlling part in qlikview. and know the flow and logic.

Just brief your requirement.

Regards

Sunil Jain.

Not applicable
Author

Sunil,

You will be aware of the tables BSAD, BSID, etc... as referred to in the table posted previously. I need to create Debtor and Creditor Day KPI's based on a point in time. So for each month or period I need to calculate the total closed, total closed within 30 days and the total open items to calculate the KPI. The total closed is easy because I am only looking at BSAK or BSAD, but to get the open items I have to read both closed and open items tables, in other words BSID or BSIK as well. Because I'm looking at open and closed tables simultaneously I'm finding it difficult to incorporate selections over both tables, as any selection on the open items tables negates any on the closed items tables and vice versa. I am struggling about how to go about doing this in QlikView. Have you done something similar? Please don't hesitate for more clarification.

Thanks,

Conor

suniljain
Master
Master

Wha I Understand From Your Description is .

You want to get all open bill details From BSID. For You have to delete one by one bill on FIFO Basis. And For all claered Item You can easily get details from BSAD.

Partial Payment Conecept is there in BSID.

So for Non Cleared Item You have to Follow FIFO Method.

If you need logic in Qlikview Pls reply me.

Regards

Sunil Jain.

Not applicable
Author

Sunil,

The QlikView logic would be very helpful - thanks. Getting the cleared items from BSAD is easy but trying to include the open items from BSID in the same chart is difficult, due to BSAD restrictions on the chart. Also, because this is an historic report, I need to use BSAD also to work out what was open at a point in time as well as what's in BSID.

Thanks,Conor

suniljain
Master
Master

Dear Conor,

Pls send me the details of the field Which you are taking in qlikview. I will send you script of qlikview for how to get open item from BSAD.

Regards

Sunil Jain.

Not applicable
Author

Sunil,

The code and logic of what I am trying to do is in my initial post. I am basically trying to do a total count on BELNR from BSAD/BSID/BSAK/BSIK for the creditor/debtor KPI's. Let me know if you need more information. Thanks.

Conor

Not applicable
Author

Hi,

I don't know if you are still looking for an answer, but I just came across this post and am wondering why you don't do the whole thing in the script? Create a common fact-table by loading first BSAD with a field "Indicator" = "Closed", then load BSID with the condition "where not exists(BSAD.BELNR, BSID.BELNR) and the "Indicator" set to "Open" - and then it should be easy to do the calculations with basic set analysis-functions. Then do the same with BSAK/BSIK (or even put them in the same facts-table and set a second Indicator to Debtor/Creditor - then it would be easier to use a common calendar, as well). If you do nightly reloads, you can even pre-calculate the over-30-days-open-KPIs in the script.

Hope this helps you - I'm not sure about the table-structures, so I'm not a 100% sure it will work exactly like this, but as far as I understood the relations between the tables, this would be my approach.

Good luck,

Lenka