<?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: Correct Syntax for Desired Formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469285#M99532</link>
    <description>&lt;P&gt;try this expression&lt;BR /&gt;&lt;BR /&gt;Count({&amp;lt;[VIN] = {"&lt;STRONG&gt;=sum([Days in workshop])&amp;gt;50&lt;/STRONG&gt;"}&amp;gt;}distinct [VIN])&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Matheus&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 18:09:01 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2024-07-09T18:09:01Z</dc:date>
    <item>
      <title>Correct Syntax for Desired Formula</title>
      <link>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469245#M99529</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I´m trying to get to the correct syntax for a formula that calculates the percentage of VIN according to the days they have been in workshop.&lt;/P&gt;
&lt;P&gt;I´m attaching the my base file, where I have a number of VIN that are in workshop, with the amount of days they have been in varying from each other. What I´m trying to do is showcase the percentage in the KPI in my dashboard (attached image) according to specific conditions. From the total of VIN, I want to show number of VIN that have been more than 50 days, the ones that have been more than 8 days but less than 50 days and finally those that have been in less than 8 days.&lt;/P&gt;
&lt;P&gt;I know this can be reached by entering formula in the KPI tool, however I just can´t get to the correct syntax for it. Can anyone help?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 15:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469245#M99529</guid>
      <dc:creator>SRAMIR</dc:creator>
      <dc:date>2024-07-09T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Syntax for Desired Formula</title>
      <link>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469277#M99531</link>
      <description>&lt;P&gt;You can achieve this in Qlik by using COUNT function with the help of SET EXPRESSION, here are the corrected formulas:&lt;/P&gt;
&lt;P&gt;1. &lt;STRONG&gt;Total number of VINs:-&lt;/STRONG&gt;&amp;nbsp; Count(TOTAL [VIN])&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2. VINs more than 50 days:&lt;/STRONG&gt; Count({&amp;lt;[Days in workshop]={"&amp;gt;50"}&amp;gt;} [VIN])&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;3. VINs between 8 and 50 days:&lt;/STRONG&gt; Count({&amp;lt;[Days in workshop]={"&amp;gt;8"}&amp;gt;} [VIN]) - Count({&amp;lt;[Days in workshop]={"&amp;gt;50"}&amp;gt;} [VIN])&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4. VINs less than 8 days:&lt;/STRONG&gt; Count({&amp;lt;[Days in workshop]={"&amp;lt;8"}&amp;gt;} [VIN])&lt;/P&gt;
&lt;P&gt;To calculate each percentage, divide each count by the total count of VINs and multiply by 100. For example:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Percentage of VINs more than 50 days:&lt;/STRONG&gt; (Count({&amp;lt;[Days in workshop]={"&amp;gt;50"}&amp;gt;} [VIN]) / Count(TOTAL [VIN])) * 100&lt;BR /&gt;&lt;BR /&gt;Please replace the formulas in your KPI's&amp;nbsp; with these corrected ones. Let me know if you need further assistance. Marks this as a solution if it help to solve your query&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 17:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469277#M99531</guid>
      <dc:creator>Sayed_Mannan</dc:creator>
      <dc:date>2024-07-09T17:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Syntax for Desired Formula</title>
      <link>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469285#M99532</link>
      <description>&lt;P&gt;try this expression&lt;BR /&gt;&lt;BR /&gt;Count({&amp;lt;[VIN] = {"&lt;STRONG&gt;=sum([Days in workshop])&amp;gt;50&lt;/STRONG&gt;"}&amp;gt;}distinct [VIN])&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Matheus&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correct-Syntax-for-Desired-Formula/m-p/2469285#M99532</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-07-09T18:09:01Z</dc:date>
    </item>
  </channel>
</rss>

