<?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: Master measure extension  number format with % not working in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Master-measure-extension-number-format-with-not-working/m-p/2007695#M17624</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/176345"&gt;@goos_it&lt;/a&gt;&amp;nbsp;, try to use this for creating your master measure. It will create a new master measure with your format&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
        "qInfo": {
            "qType": "measure",
            "qId": "ZRPVLb"
        },
        "qMetaDef": {
            "title": "Test Format 2",
            "description": "",
            "tags": []
        },
        "qMeasure": {
            "qLabel": "Test Format 2",
            "qDef": "sum(Expression2)",
            "qLabelExpression": "",
            "isCustomFormatted": false,
            "qNumFormat": {
                "qType": "F",
                "qnDec": 2,
                "qDec": ",",
                "qThou": ".",
                "qFmt": "0,00%"
            },
            "coloring": {}
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have after I created the master measure with engine API&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_colombo_0-1669129692629.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94308iCA29C8FCE1EE0861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_colombo_0-1669129692629.png" alt="alex_colombo_0-1669129692629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 15:08:43 GMT</pubDate>
    <dc:creator>alex_colombo</dc:creator>
    <dc:date>2022-11-22T15:08:43Z</dc:date>
    <item>
      <title>Master measure extension  number format with % not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Master-measure-extension-number-format-with-not-working/m-p/2003419#M17560</link>
      <description>&lt;P&gt;Hey, Guys,&lt;/P&gt;
&lt;P&gt;I´m trying to have a master measure created via extension. I want the number format to be the standard format with format string "0,00%" (german layout), but it doesn´t work. I´m always getting a master measure with an empty number format string (correctly labeled as "Number" German: Zahl).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="goos_it_0-1668155887581.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93487i4383DACF76DF4A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="goos_it_0-1668155887581.png" alt="goos_it_0-1668155887581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My parameters are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;"qNumFormat": {&lt;BR /&gt;"qType": &lt;FONT size="6"&gt;&lt;STRONG&gt;F&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;"qnDec": &lt;FONT size="6"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;BR /&gt;"qUseThou": &lt;FONT size="6"&gt;0&lt;/FONT&gt;,&lt;BR /&gt;"qFmt": &lt;FONT size="6"&gt;0,00%&lt;/FONT&gt;,&lt;BR /&gt;"qDec": &lt;FONT size="6"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt; ,&lt;BR /&gt;"qThou": &lt;FONT size="6"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;}&lt;BR /&gt;I´m sure it has something to do with the qFmt, but no matter how many single or double quotes i use, it still won´t accept it.&lt;/P&gt;
&lt;P&gt;If i do the same with the money format, It works (meaning it shows my format string an the number type money.&lt;/P&gt;
&lt;P&gt;How can I get qlik to give this measure the standard format for&amp;nbsp; a %-number (I know there is a way to make it a user-defined format which ignores the given standard formats and uses the format string, but this isn´t what I want to achieve because it will erase the qlik-functionality of interpreting a number 0.1 as 10% (with a full custom number format it will give me 0.1%...).&lt;/P&gt;
&lt;P&gt;Thanks for all your suggestions and thoughts!&lt;/P&gt;
&lt;P&gt;Br Stephan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var properties = {
                    "qInfo": {
                        "qType": "measure",
                        "qId": measureId
                    },
                    "qMeasure": {
                        "qLabel": label,
                        "qDef": expression,
                        "qGrouping": "N",
                        "qLabelExpression": labelExpression,
                        "qExpressions": [],
                        "coloring": {
                            "baseColor": {
                                "color": color,
                                "index": -1
                            },
                            "gradient": segmentColor 
                        },
                        "qActiveExpression": 0,
			"qNumFormat": {
				"qType": formatType,
				"qnDec": parseInt(formatNDec),
				"qUseThou": parseInt(formatUseThou),
				"qFmt": formatFmt,
				"qDec": formatDec,
				"qThou": formatThou
				}
                    },
                    "qMetaDef": {
                        "title": cells[0].qText,
                        "description": description, 
                        "tags": tagsList, 
                    }
                };&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 08:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Master-measure-extension-number-format-with-not-working/m-p/2003419#M17560</guid>
      <dc:creator>goos_it</dc:creator>
      <dc:date>2022-11-11T08:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Master measure extension  number format with % not working</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Master-measure-extension-number-format-with-not-working/m-p/2007695#M17624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/176345"&gt;@goos_it&lt;/a&gt;&amp;nbsp;, try to use this for creating your master measure. It will create a new master measure with your format&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
        "qInfo": {
            "qType": "measure",
            "qId": "ZRPVLb"
        },
        "qMetaDef": {
            "title": "Test Format 2",
            "description": "",
            "tags": []
        },
        "qMeasure": {
            "qLabel": "Test Format 2",
            "qDef": "sum(Expression2)",
            "qLabelExpression": "",
            "isCustomFormatted": false,
            "qNumFormat": {
                "qType": "F",
                "qnDec": 2,
                "qDec": ",",
                "qThou": ".",
                "qFmt": "0,00%"
            },
            "coloring": {}
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have after I created the master measure with engine API&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_colombo_0-1669129692629.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94308iCA29C8FCE1EE0861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_colombo_0-1669129692629.png" alt="alex_colombo_0-1669129692629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 15:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Master-measure-extension-number-format-with-not-working/m-p/2007695#M17624</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-11-22T15:08:43Z</dc:date>
    </item>
  </channel>
</rss>

