<?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 Re: Straight Table Query With Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-Query-With-Expression/m-p/1728649#M723362</link>
    <description>&lt;P&gt;try with only functions. But make sure that you have unique values of Cost, Hours for combination of dimensions you are using in the chart otherwise it will not work.&lt;/P&gt;&lt;P&gt;Create variable on front end for max Date which is nothing but selected Date&lt;/P&gt;&lt;P&gt;vMaxDate =&amp;nbsp; date(max(&lt;STRONG&gt;DateField&lt;/STRONG&gt;)) // This is the Date field on which you are going to make selection&lt;/P&gt;&lt;P&gt;Then you can below expression&lt;/P&gt;&lt;P&gt;only({&amp;lt;&lt;STRONG&gt;ColA&lt;/STRONG&gt;-={'X'},&lt;STRONG&gt;ColB&lt;/STRONG&gt;={"&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;STRONG&gt;Cost&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Similarly you can create the same expression for Hours &amp;amp; Rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 23:05:05 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-16T23:05:05Z</dc:date>
    <item>
      <title>Straight Table Query With Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Query-With-Expression/m-p/1728637#M723361</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a table in my data model(fact) which is a union/concatenation of data from 2 qvds (Acts, TRC) . There is a column in the table say Status which identifies whether the data is Acts or Trc.&amp;nbsp;E.g. Status = TRC/ACTS.&lt;/P&gt;&lt;P&gt;There are around 40 other columns. Amongst which there are 3 columns called Cost ,Rate and Hour&amp;nbsp; from both tables which can be used as measures and the rest are all dimensions.&lt;/P&gt;&lt;P&gt;Now as a requirement, I need to show the data from Acts with filters like ColA&amp;lt;&amp;gt; 'x' and ColB&amp;lt;=selected date from date filter but with &lt;STRONG&gt;NO&lt;/STRONG&gt; sum/aggregation for cost , rate and hour. (So I was using a dummy expression in my straight table)&lt;/P&gt;&lt;P&gt;But for Trc, I need to do a &lt;STRONG&gt;Sum(Cost),Sum(Hours), Sum(Rate)&lt;/STRONG&gt; along with&amp;nbsp;ColA&amp;lt;&amp;gt; 'x' and ColB&amp;lt;=selected&amp;nbsp;date from date ilter.&lt;/P&gt;&lt;P&gt;Is it possible to show Cost/Hour/Rate for Acts &lt;STRONG&gt;without&lt;/STRONG&gt; sum and&amp;nbsp; Cost/Hour/Rate&amp;nbsp; with &lt;STRONG&gt;sum/aggregate&lt;/STRONG&gt; for TRC in this way in the straight table?&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Query-With-Expression/m-p/1728637#M723361</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2024-11-16T00:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table Query With Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Query-With-Expression/m-p/1728649#M723362</link>
      <description>&lt;P&gt;try with only functions. But make sure that you have unique values of Cost, Hours for combination of dimensions you are using in the chart otherwise it will not work.&lt;/P&gt;&lt;P&gt;Create variable on front end for max Date which is nothing but selected Date&lt;/P&gt;&lt;P&gt;vMaxDate =&amp;nbsp; date(max(&lt;STRONG&gt;DateField&lt;/STRONG&gt;)) // This is the Date field on which you are going to make selection&lt;/P&gt;&lt;P&gt;Then you can below expression&lt;/P&gt;&lt;P&gt;only({&amp;lt;&lt;STRONG&gt;ColA&lt;/STRONG&gt;-={'X'},&lt;STRONG&gt;ColB&lt;/STRONG&gt;={"&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;STRONG&gt;Cost&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Similarly you can create the same expression for Hours &amp;amp; Rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 23:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Query-With-Expression/m-p/1728649#M723362</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-16T23:05:05Z</dc:date>
    </item>
  </channel>
</rss>

