<?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 Use dimension value in measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-dimension-value-in-measure/m-p/1993070#M82179</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'd like to know if is it possible to use the "current" value of a dimension in a measure.&lt;/P&gt;
&lt;P&gt;For example, if I have a table like this:&lt;/P&gt;
&lt;P&gt;CONTRACT:&lt;BR /&gt;LOAD Contract_number,&lt;BR /&gt;Contract_creation_date,&lt;BR /&gt;Execution_date&lt;/P&gt;
&lt;P&gt;Then, I want to create a bar-graph to show, for each execution_date, the count of contracts created in that date, which would be something like:&lt;/P&gt;
&lt;P&gt;DIMENSION: Execution_date&lt;/P&gt;
&lt;P&gt;MEASURE: Count({Contract_created_date = {Execution_date}} Contract_number)&lt;/P&gt;
&lt;P&gt;But that doesn't work.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 16 Oct 2022 21:27:58 GMT</pubDate>
    <dc:creator>Morgoz</dc:creator>
    <dc:date>2022-10-16T21:27:58Z</dc:date>
    <item>
      <title>Use dimension value in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Use-dimension-value-in-measure/m-p/1993070#M82179</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'd like to know if is it possible to use the "current" value of a dimension in a measure.&lt;/P&gt;
&lt;P&gt;For example, if I have a table like this:&lt;/P&gt;
&lt;P&gt;CONTRACT:&lt;BR /&gt;LOAD Contract_number,&lt;BR /&gt;Contract_creation_date,&lt;BR /&gt;Execution_date&lt;/P&gt;
&lt;P&gt;Then, I want to create a bar-graph to show, for each execution_date, the count of contracts created in that date, which would be something like:&lt;/P&gt;
&lt;P&gt;DIMENSION: Execution_date&lt;/P&gt;
&lt;P&gt;MEASURE: Count({Contract_created_date = {Execution_date}} Contract_number)&lt;/P&gt;
&lt;P&gt;But that doesn't work.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 21:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-dimension-value-in-measure/m-p/1993070#M82179</guid>
      <dc:creator>Morgoz</dc:creator>
      <dc:date>2022-10-16T21:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension value in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Use-dimension-value-in-measure/m-p/1993110#M82182</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The Aggr Function --&amp;nbsp;&lt;STRONG&gt;AGGR(count(Contract_number),Contract_created_date, Execution_date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can test with the following data assuming your dataset looks something like this:&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;BR /&gt;Contract_number,Contract_creation_date,Execution_date&lt;BR /&gt;A, 01/03/2021,02/03/2021&lt;BR /&gt;B, 11/04/2021,11/04/2021&lt;BR /&gt;C, 03/05/2021,29/06/2021&lt;BR /&gt;D, 31/05/2011,31/05/2011&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-dimension-value-in-measure/m-p/1993110#M82182</guid>
      <dc:creator>TusharCC</dc:creator>
      <dc:date>2022-10-17T06:32:13Z</dc:date>
    </item>
  </channel>
</rss>

