<?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: Decimal and thousand separators,  trouble using IsNum() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695228#M53162</link>
    <description>&lt;P&gt;To check if it's a number, we have to convert to number when possible.&lt;/P&gt;&lt;P&gt;I used this piece of script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madelonjansen_0-1587472125994.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32185i3301BF1B28C35C7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madelonjansen_0-1587472125994.png" alt="madelonjansen_0-1587472125994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which returns this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madelonjansen_1-1587472157117.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32186i649C92FC3A458E88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madelonjansen_1-1587472157117.png" alt="madelonjansen_1-1587472157117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To break it down:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num(Num#('0'&amp;amp;RISULTATO)) as Number&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;add a leading zero and using the Num#() function convert to numerical value. (if needed, add the source format in the 2nd parameter of the Num#() function.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use this as the input for the IsNum() function, to check if it was actually a number:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(IsNum(num(Num#('0'&amp;amp;RISULTATO))), 1, 0) as IsNumNumber&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 12:32:06 GMT</pubDate>
    <dc:creator>madelonjansen</dc:creator>
    <dc:date>2020-04-21T12:32:06Z</dc:date>
    <item>
      <title>Decimal and thousand separators,  trouble using IsNum()</title>
      <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695141#M53155</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So, I asked these two questions before:&lt;/P&gt;&lt;P&gt;1. I had regional settings problems:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Min-Max-returning-multiple-values/m-p/1689730#M161468" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Min-Max-returning-multiple-values/m-p/1689730#M161468&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Using IsNum&amp;nbsp;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Telling-apart-datatypes-on-same-field/m-p/1690720#M161649" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Telling-apart-datatypes-on-same-field/m-p/1690720#M161649&lt;/A&gt;&lt;/P&gt;&lt;P&gt;These solutions worked on my PC with Americas regional settings, but ever since I moved on to an European server and and DB, I have been having trouble again. I understand that Qlik takes the regional settings of the pc, so I set the thousand separator to "." and the decimal to "," as it is in the windows settings. When I did this I kept getting the error from my first question, even after creating an application from scratch in the european computer. So I changed it back to a . as decimal separator and now I was able to do the master calendar, but I suspect this is the reason why IsNum is not working anymore (I get a 0 every time.&lt;/P&gt;&lt;P&gt;I apologize for mixing two subjects but they seem related to me. I hope I stated my problem with clarity. Thank you.&lt;/P&gt;&lt;P&gt;PS. the values on the database use ',', and I've also tried replacing the comma for a point during extraction, to no result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching a sample of the data.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695141#M53155</guid>
      <dc:creator>FernandaNava</dc:creator>
      <dc:date>2024-11-16T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal and thousand separators,  trouble using IsNum()</title>
      <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695213#M53158</link>
      <description>&lt;P&gt;Hi FerNava,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IsNum() function is a great way to understand the format of your data, but it will not change the format.&lt;/P&gt;&lt;P&gt;When the values are not numerical (returning 0) but need to be, you can use the Num#() function to convert them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 11:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695213#M53158</guid>
      <dc:creator>madelonjansen</dc:creator>
      <dc:date>2020-04-21T11:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal and thousand separators,  trouble using IsNum()</title>
      <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695220#M53160</link>
      <description>&lt;P&gt;Thanks for your reply. The thing is, this field sometimes contains a number and sometimes text, and I was using IsNum to add a flag so I could later use those who are actually numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to upload a sample of the data but it won;t let me. I&lt;A href="https://drive.google.com/open?id=1arahII-0yT1cEXhjNMKnFsbfkZemQSzQ" target="_self"&gt; saved it here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695220#M53160</guid>
      <dc:creator>FernandaNava</dc:creator>
      <dc:date>2020-04-21T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal and thousand separators,  trouble using IsNum()</title>
      <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695228#M53162</link>
      <description>&lt;P&gt;To check if it's a number, we have to convert to number when possible.&lt;/P&gt;&lt;P&gt;I used this piece of script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madelonjansen_0-1587472125994.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32185i3301BF1B28C35C7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madelonjansen_0-1587472125994.png" alt="madelonjansen_0-1587472125994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which returns this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madelonjansen_1-1587472157117.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32186i649C92FC3A458E88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madelonjansen_1-1587472157117.png" alt="madelonjansen_1-1587472157117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To break it down:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num(Num#('0'&amp;amp;RISULTATO)) as Number&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;add a leading zero and using the Num#() function convert to numerical value. (if needed, add the source format in the 2nd parameter of the Num#() function.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use this as the input for the IsNum() function, to check if it was actually a number:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(IsNum(num(Num#('0'&amp;amp;RISULTATO))), 1, 0) as IsNumNumber&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695228#M53162</guid>
      <dc:creator>madelonjansen</dc:creator>
      <dc:date>2020-04-21T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal and thousand separators,  trouble using IsNum()</title>
      <link>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695235#M53163</link>
      <description>&lt;P&gt;Thank you, this worked perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Decimal-and-thousand-separators-trouble-using-IsNum/m-p/1695235#M53163</guid>
      <dc:creator>FernandaNava</dc:creator>
      <dc:date>2020-04-21T12:42:32Z</dc:date>
    </item>
  </channel>
</rss>

