<?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: How to do calculation in qv? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341516#M1176356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached for one solution.&amp;nbsp; Not sure what your "Time" field was so I used Hours but you can substitute for whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Apr 2012 17:34:53 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-04-07T17:34:53Z</dc:date>
    <item>
      <title>How to do calculation in qv?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341514#M1176354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I´m not sure how to do this but hope some can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following fields with data: Timeunit that are either "day", "week" or "month". Time that are a number. Periodicity that are a number.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Then I have seven diffrent fields that have "J" in them if true. (if time are set to occur on monday, monday=J, and so on for the diffrent days) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the following (in script if it´s poosible) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If timeunit are week, Time / Periodicity &lt;/P&gt;&lt;P&gt;If timeunit are month, (Time / Periodicity) /4,33&lt;/P&gt;&lt;P&gt;If timeunit are day, (number of J * Time) / Periodicity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As for number of J, max 7 - how to make qlikview "count" number of J, and if their ain´t any markes of J, will qv count 0? If so, I have to make it count 1 because 0 ' xy will return 0 and thats wrong?) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach I small sample of data in xls. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 12:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341514#M1176354</guid>
      <dc:creator />
      <dc:date>2012-04-07T12:11:42Z</dc:date>
    </item>
    <item>
      <title>How to do calculation in qv?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341515#M1176355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok. I have got the calculation as a if(expression) that works for periodicity with week and months but when it´s days the if statemeant becomes...difficult..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(TimeUnit ='Day' AND Monday='J' AND Tuesday='J' AND Wednesday='J' AND Thursday='J' AND Friday='J' AND Saturday='J' AND Sunday ='J' , sum((('7'*DecimalTime)*'4,33')/Periodicity))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that´s only for one combination...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to make it in a better way? Can I somehow convert it to a table or something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 16:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341515#M1176355</guid>
      <dc:creator />
      <dc:date>2012-04-07T16:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to do calculation in qv?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341516#M1176356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached for one solution.&amp;nbsp; Not sure what your "Time" field was so I used Hours but you can substitute for whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 17:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341516#M1176356</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-07T17:34:53Z</dc:date>
    </item>
    <item>
      <title>How to do calculation in qv?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341517#M1176357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thnks! the timeformat is the same as the one you helped me out with in previous post so I will apply that solution on this but I´m sure that won´t be any problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 08:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-calculation-in-qv/m-p/341517#M1176357</guid>
      <dc:creator />
      <dc:date>2012-04-08T08:30:52Z</dc:date>
    </item>
  </channel>
</rss>

