<?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 Straight table in QlikView where there are different expressions based on the value in the dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-in-QlikView-where-there-are-different-expressions/m-p/1743698#M453105</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create a straight table in QlikView where there are different expressions based on the value in the dimension. I saw someone use Pick(), but I couldn't get it to work here. I also tried using the 'IF' statements below. They didn't work. The dataset itself has probably 50 million rows (and a lot more columns - I am just listing applicable columns). It is a good-sized dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the straight table, the dimension used it 'Flag'&lt;/P&gt;&lt;P&gt;In the expression area, the first expression is this:&lt;/P&gt;&lt;P&gt;Success:&lt;BR /&gt;IF(Flag = 1, (Num($(eSumSuccess), '#,##0'))&lt;BR /&gt;, IF(Flag = 4, (Num($(eSumSuccessPrice), '#,##0'))&lt;BR /&gt;, IF(Flag = 7, (Num($(eSumSuccessCreate), '#,##0'))&lt;BR /&gt;, IF(Flag = 10, (Num($(eSumSuccessSegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;Failures:&lt;BR /&gt;IF (Flag = 2, (Num($(eSumFailure), '#,##0'))&lt;BR /&gt;, IF (Flag = 5, (Num($(eSumFailurePrice), '#,##0'))&lt;BR /&gt;, IF (Flag = 8, (Num($(eSumFailureCreate), '#,##0'))&lt;BR /&gt;, IF (Flag = 11, (Num($(eSumFailureSegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attempts:&lt;BR /&gt;IF(Flag = 3, (Num($(eTry), '#,##0'))&lt;BR /&gt;, IF(Flag = 6, (Num($(eTryPrice), '#,##0'))&lt;BR /&gt;, IF(Flag = 9, (Num($(eTryCreate), '#,##0'))&lt;BR /&gt;, IF(Flag = 12, (Num($(eTrySegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RequestTypeDim:&lt;BR /&gt;LOAD * Inline[&lt;BR /&gt;~RequestTypeDim, Paramaters, Flag&lt;BR /&gt;Transaction, Success, 1&lt;BR /&gt;Transaction, Failures, 2&lt;BR /&gt;Transaction, Attempts, 3&lt;BR /&gt;Price, Success, 4&lt;BR /&gt;Price, Failures, 5&lt;BR /&gt;Price, Attempts, 6&lt;BR /&gt;Create, Success, 7&lt;BR /&gt;Create, Failures, 8&lt;BR /&gt;Create, Attempts, 9&lt;BR /&gt;Segment, Success, 10&lt;BR /&gt;Segment, Failures, 11&lt;BR /&gt;Segment, Attempts, 12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;table from the dataset:&lt;BR /&gt;date,&lt;BR /&gt;customer,&lt;BR /&gt;request_type_desc,&lt;BR /&gt;count,&lt;BR /&gt;success,&lt;BR /&gt;failure,&lt;BR /&gt;success + failure as attempt&lt;BR /&gt;FROM customer.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sample of the dataset (I am putting in comas so you can clearly see the columns):&lt;BR /&gt;08/04/2020, Picker, Price, 1,1,0,1&lt;BR /&gt;08/09/2020, Nextgen, Create, 0,0,1,1&lt;BR /&gt;08/10/2020, Alliance, Segment, 4,4,0,4&lt;/P&gt;&lt;P&gt;Thank you for any help you can give!&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:06:49 GMT</pubDate>
    <dc:creator>mp802377</dc:creator>
    <dc:date>2024-11-16T18:06:49Z</dc:date>
    <item>
      <title>Straight table in QlikView where there are different expressions based on the value in the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-in-QlikView-where-there-are-different-expressions/m-p/1743698#M453105</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create a straight table in QlikView where there are different expressions based on the value in the dimension. I saw someone use Pick(), but I couldn't get it to work here. I also tried using the 'IF' statements below. They didn't work. The dataset itself has probably 50 million rows (and a lot more columns - I am just listing applicable columns). It is a good-sized dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the straight table, the dimension used it 'Flag'&lt;/P&gt;&lt;P&gt;In the expression area, the first expression is this:&lt;/P&gt;&lt;P&gt;Success:&lt;BR /&gt;IF(Flag = 1, (Num($(eSumSuccess), '#,##0'))&lt;BR /&gt;, IF(Flag = 4, (Num($(eSumSuccessPrice), '#,##0'))&lt;BR /&gt;, IF(Flag = 7, (Num($(eSumSuccessCreate), '#,##0'))&lt;BR /&gt;, IF(Flag = 10, (Num($(eSumSuccessSegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;Failures:&lt;BR /&gt;IF (Flag = 2, (Num($(eSumFailure), '#,##0'))&lt;BR /&gt;, IF (Flag = 5, (Num($(eSumFailurePrice), '#,##0'))&lt;BR /&gt;, IF (Flag = 8, (Num($(eSumFailureCreate), '#,##0'))&lt;BR /&gt;, IF (Flag = 11, (Num($(eSumFailureSegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attempts:&lt;BR /&gt;IF(Flag = 3, (Num($(eTry), '#,##0'))&lt;BR /&gt;, IF(Flag = 6, (Num($(eTryPrice), '#,##0'))&lt;BR /&gt;, IF(Flag = 9, (Num($(eTryCreate), '#,##0'))&lt;BR /&gt;, IF(Flag = 12, (Num($(eTrySegment), '#,##0'))&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RequestTypeDim:&lt;BR /&gt;LOAD * Inline[&lt;BR /&gt;~RequestTypeDim, Paramaters, Flag&lt;BR /&gt;Transaction, Success, 1&lt;BR /&gt;Transaction, Failures, 2&lt;BR /&gt;Transaction, Attempts, 3&lt;BR /&gt;Price, Success, 4&lt;BR /&gt;Price, Failures, 5&lt;BR /&gt;Price, Attempts, 6&lt;BR /&gt;Create, Success, 7&lt;BR /&gt;Create, Failures, 8&lt;BR /&gt;Create, Attempts, 9&lt;BR /&gt;Segment, Success, 10&lt;BR /&gt;Segment, Failures, 11&lt;BR /&gt;Segment, Attempts, 12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;table from the dataset:&lt;BR /&gt;date,&lt;BR /&gt;customer,&lt;BR /&gt;request_type_desc,&lt;BR /&gt;count,&lt;BR /&gt;success,&lt;BR /&gt;failure,&lt;BR /&gt;success + failure as attempt&lt;BR /&gt;FROM customer.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sample of the dataset (I am putting in comas so you can clearly see the columns):&lt;BR /&gt;08/04/2020, Picker, Price, 1,1,0,1&lt;BR /&gt;08/09/2020, Nextgen, Create, 0,0,1,1&lt;BR /&gt;08/10/2020, Alliance, Segment, 4,4,0,4&lt;/P&gt;&lt;P&gt;Thank you for any help you can give!&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-in-QlikView-where-there-are-different-expressions/m-p/1743698#M453105</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2024-11-16T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table in QlikView where there are different expressions based on the value in the dimen</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-in-QlikView-where-there-are-different-expressions/m-p/1743722#M453106</link>
      <description>&lt;P&gt;match and pick should still work.&amp;nbsp; i suggest you substitute your calculation in the pick and match instead of variable to see where the issue is.&amp;nbsp; also dont forget to include Flag in your dimension so the match will work (you can always hide it if its not needed)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40536i1C0288A57B15CDF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; using the small data set, only transaction, Price and segment will have entries as Create has 0 success.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 19:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-in-QlikView-where-there-are-different-expressions/m-p/1743722#M453106</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-14T19:57:38Z</dc:date>
    </item>
  </channel>
</rss>

