<?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: Modulo chart function (Qlik Sense 3.2) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61879#M4080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you might have guessed my real application is a bit different than the question but I was really trying to understand the syntax. Good catch on my typo. It was supposed to be 1440. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mod(Num#(Text(Interval(Now(1)-Today(), 'mm'))), &lt;STRONG&gt;1440&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;=Interval(frac(Now(1)-Today()+1), 'mm')&lt;/P&gt;&lt;P&gt;=Minute(Time(Now(1)))+(Hour(Time(Now(1)))*60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 15:26:39 GMT</pubDate>
    <dc:creator>wdchristensen</dc:creator>
    <dc:date>2018-04-05T15:26:39Z</dc:date>
    <item>
      <title>Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61873#M4074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out why my mod function isn't working as I expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Now(0)-Packing_DtTm,'DD') &lt;/P&gt;&lt;P&gt;The above line gives me the number of days and works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mod(Interval(Now(1)-Packing_DtTm, 'mm'), 1440)&lt;/P&gt;&lt;P&gt;The above line is &lt;STRONG&gt;supposed&lt;/STRONG&gt; to produce the number of minutes without the day portion since that is included in the day calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/GeneralNumericFunctions/mod.htm" title="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/GeneralNumericFunctions/mod.htm"&gt;https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/GeneralNumericFunctions/mod.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I am missing. I checked Packing_DtTm with isnum and it appears to be a real date. Any help you can provide would be greatly appreciated! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61873#M4074</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-04-05T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61874#M4075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is an example that also &lt;EM&gt;doesn't&lt;/EM&gt; work but doesn't rely on any specific data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mod(Interval(Now(1)-Today(), 'mm'),60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61874#M4075</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-04-05T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61875#M4076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(frac(Now(1)-Today()), 'mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61875#M4076</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61876#M4077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason because mod() didn't work is that the function accepts only integers as parameter. Beside this I doubt that mod() will return what do you want. Therefore go just with the suggestion from Sunny or calculate your wished output directly maybe with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;floor((Now(&lt;STRONG&gt;2&lt;/STRONG&gt;)-Packing_DtTm) / 24 / 60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61876#M4077</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-05T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61877#M4078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt;&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Your solution is great! However I am struggling to understand why I can't get mod to work. &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;A href="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/FormattingFunctions/Interval.htm" title="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/FormattingFunctions/Interval.htm"&gt;https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/FormattingFunctions/Interval.htm&lt;/A&gt;‌&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/marcus_sommer"&gt;marcus_sommer&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;You were total right about mod needing integers and the interval function returns a dual.&lt;/SPAN&gt;&lt;SPAN class="autonumber" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt; With some tweaking I was able to get it to work as I originally expected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="autonumber" style="font-weight: bold; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So my original formula can be modified as follows to works as expected but is far less elegant!&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=mod(Num#(Text(Interval(Now(1)-Today(), 'mm'))), 60)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great learning lesson! Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61877#M4078</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-04-05T15:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61878#M4079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the two expressions really equal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mod(Num#(Text(Interval(Now(1)-Today(), 'mm'))), 60)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(frac(Now(1)-Today()+1), 'mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198620_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st one is telling me that it has been 12 minutes into the hour, but the second one is saying that it has been 672 minutes into the day... what exactly are you trying to calculate? It seemed as if you wanted to calculate minutes into the day.... but this might have been about modulo... but either ways... there might be multiple other ways to handle this... but even before going into modulo... think about the fact that hours and minutes are really fractions and modulo with 1440 might not really be the right way to go... unless you use Num#() function... like you did...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61878#M4079</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T15:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modulo chart function (Qlik Sense 3.2)</title>
      <link>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61879#M4080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you might have guessed my real application is a bit different than the question but I was really trying to understand the syntax. Good catch on my typo. It was supposed to be 1440. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mod(Num#(Text(Interval(Now(1)-Today(), 'mm'))), &lt;STRONG&gt;1440&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;=Interval(frac(Now(1)-Today()+1), 'mm')&lt;/P&gt;&lt;P&gt;=Minute(Time(Now(1)))+(Hour(Time(Now(1)))*60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Modulo-chart-function-Qlik-Sense-3-2/m-p/61879#M4080</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-04-05T15:26:39Z</dc:date>
    </item>
  </channel>
</rss>

