<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Expression based on row cells in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-based-on-row-cells-in-chart/m-p/2079587#M1223967</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to take the sum of the projected incurred claims from Jan 2022-Dec 2023, and divide it by the sum of the FFS membership values from Jan 2022-Dec 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="midwest_0-1685742984106.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109038i9E2D717631A902C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="midwest_0-1685742984106.png" alt="midwest_0-1685742984106.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the expression for the "12 month ending dec" field that I am using in the straight table chart:&lt;/P&gt;
&lt;P&gt;if(MonthName(service_month)&amp;gt;=MonthName(AddMonths(today(),-17)) &lt;BR /&gt;and MonthName(service_month)&amp;lt;=MonthName(AddMonths(today(),-6)),&lt;BR /&gt;sum(TOTAL(sum(paidamt))/Lag_Factors))/sum(TOTAL(FFS_membership))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: The expression "sum(paidamt)/Lag_Factors" is the expression that creates the Proj Incurred Claims field.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screenshot below is from my excel spreadsheet that depicts the expression I am trying to replicate in qlikview.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="midwest_5-1685742683196.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109037i0390AD18723A8F50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="midwest_5-1685742683196.png" alt="midwest_5-1685742683196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please excuse my terrible screenshots. I can only show enough to indicate what I am trying to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any suggestions on how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 21:56:44 GMT</pubDate>
    <dc:creator>midwest</dc:creator>
    <dc:date>2023-06-02T21:56:44Z</dc:date>
    <item>
      <title>Expression based on row cells in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-row-cells-in-chart/m-p/2079587#M1223967</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to take the sum of the projected incurred claims from Jan 2022-Dec 2023, and divide it by the sum of the FFS membership values from Jan 2022-Dec 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="midwest_0-1685742984106.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109038i9E2D717631A902C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="midwest_0-1685742984106.png" alt="midwest_0-1685742984106.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the expression for the "12 month ending dec" field that I am using in the straight table chart:&lt;/P&gt;
&lt;P&gt;if(MonthName(service_month)&amp;gt;=MonthName(AddMonths(today(),-17)) &lt;BR /&gt;and MonthName(service_month)&amp;lt;=MonthName(AddMonths(today(),-6)),&lt;BR /&gt;sum(TOTAL(sum(paidamt))/Lag_Factors))/sum(TOTAL(FFS_membership))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: The expression "sum(paidamt)/Lag_Factors" is the expression that creates the Proj Incurred Claims field.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screenshot below is from my excel spreadsheet that depicts the expression I am trying to replicate in qlikview.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="midwest_5-1685742683196.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109037i0390AD18723A8F50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="midwest_5-1685742683196.png" alt="midwest_5-1685742683196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please excuse my terrible screenshots. I can only show enough to indicate what I am trying to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any suggestions on how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 21:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-row-cells-in-chart/m-p/2079587#M1223967</guid>
      <dc:creator>midwest</dc:creator>
      <dc:date>2023-06-02T21:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on row cells in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-row-cells-in-chart/m-p/2079631#M1223969</link>
      <description>&lt;P&gt;You can probably solve this by using set analysis. I did not quite understand your logic of selecting periods. Below&amp;nbsp; an example where I calculate for all years greater or equal to last year.&lt;/P&gt;
&lt;P&gt;If you need another logic then please explain&amp;nbsp; and also let us know which calendar fields that you have available. Is it only Year and Month or do you have more fields?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUM({&amp;lt; [Incurred Year]={"&amp;gt;=$(=year(today())-1)"}&amp;gt;} [Proj Incurred Claims])&lt;/P&gt;
&lt;P&gt;/ SUM({&amp;lt; [Incurred Year]={"&amp;gt;=$(=year(today())-1)"}&amp;gt;} [FFS_membership])&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 06:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-row-cells-in-chart/m-p/2079631#M1223969</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-06-03T06:30:25Z</dc:date>
    </item>
  </channel>
</rss>

