<?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: Help with qCalcCond on measure in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1689302#M12565</link>
    <description>&lt;P&gt;not working still, tried with quotes, without quotes&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;return {&lt;BR /&gt;initialProperties: {&lt;BR /&gt;qHyperCubeDef: {&lt;BR /&gt;qDimensions: [],&lt;BR /&gt;qMeasures: [],&lt;BR /&gt;qInitialDataFetch: [{&lt;BR /&gt;qWidth: 50,&lt;BR /&gt;qHeight: 100&lt;BR /&gt;}],&lt;BR /&gt;qCalcCond: {&lt;BR /&gt;qv: "=GetSelectedCount(Currency) &amp;gt;= 1"&lt;BR /&gt;},&lt;BR /&gt;qCalcCondition: {&lt;BR /&gt;qCond: {&lt;BR /&gt;qv: ""&lt;BR /&gt;},&lt;BR /&gt;qMsg: {&lt;BR /&gt;qv: ""&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;definition: props,&lt;BR /&gt;snapshot: {&lt;BR /&gt;canTakeSnapshot: true&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;paint: function ( $element, layout ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 07:05:48 GMT</pubDate>
    <dc:creator>Akansha</dc:creator>
    <dc:date>2020-03-31T07:05:48Z</dc:date>
    <item>
      <title>Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/21256#M317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello, I am trying to define a hyper cube, and I want to set a calculation condition on a measure. Right now I have the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-size: 14px;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;"qMeasures": [&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qDef": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qLabel": "Foo",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qGrouping": "N",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qDef": &lt;SPAN&gt;"Bar"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qNumFormat": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qType": "F",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qnDec": 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qUseThou": 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qFmt": "0.0%",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qDec": ".",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qThou": ","&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "autoSort": true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "cId": "JXKjkd",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "numFormatFromTemplate": true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "isCustomFormatted": false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qSortBy": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qSortByNumeric": -1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qSortByLoadOrder": 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qExpression": {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qCalcCond": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qv": "0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qCalcCondition": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qCond": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qv": "0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; "qMsg": {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have other measures in my hypercube definition, but I'm setting the calc condition of this one to 0 to see if I can get it to stop displaying.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I'm trying to create a pivot table with measures that will not calculate based on a variable I pass to qHyperCubeDef. However, when I set this measure to 0 to not calculate, the entire pivot table does not calculate. I get the following error in my console: "TypeError: Cannot read property 'qError' of undefined".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If I exclude &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;"qCalcCond" and &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;"qCalcCondition", the pivot table works fine, but it still displays the measure I don't want it to.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;Am I just using qCalcCond wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 17:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/21256#M317</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2018-05-11T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/21257#M318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any insight into this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 21:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/21257#M318</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2018-05-24T21:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1597617#M10887</link>
      <description>&lt;P&gt;I am trying to find the same if i get a proper answer ill update.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 10:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1597617#M10887</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2019-07-01T10:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1677535#M12361</link>
      <description>&lt;P&gt;does anyone found any solution on this, i am also looking for same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 12:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1677535#M12361</guid>
      <dc:creator>jitu2110</dc:creator>
      <dc:date>2020-02-20T12:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1684716#M12492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ShowIf:{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; type: "string",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; label: "Show Column IF",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ref: "qCalcCondition.qCond.qv",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; component: "expression"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 03:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1684716#M12492</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2020-03-15T03:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1685148#M12496</link>
      <description>&lt;P&gt;Wow I posted this a while ago. Since then I have been able to disable pivot table measures. I'm not sure if it is something that I did or if it was fixed in a patch or something, but I haven't had any issues doing this since I posted this question.&lt;BR /&gt;&lt;BR /&gt;It might be that I was passing the number 0 when you need to pass the string "0", but I honestly don't remember if I had tried that when I posted this.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1685148#M12496</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2020-03-16T21:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1687506#M12539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you please tell me how to give an expression in qCalcCond? I want to use this property to stop calculation of my hypercube if all of the given filters are not selected. Is it possible to write something like below in qCalcCond?&lt;/P&gt;&lt;P&gt;Getselectedcount(filter1)&amp;gt;=1 AND&amp;nbsp;Getselectedcount(filter2)&amp;gt;=1&lt;/P&gt;&lt;P&gt;Could you help me with the syntax&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 03:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1687506#M12539</guid>
      <dc:creator>Akansha</dc:creator>
      <dc:date>2020-03-25T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1687685#M12543</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"qCalcCond": {
    "qv": "=if(GetSelectedCount(filter1) &amp;gt;= 1 and GetSelectedCount(filter2) &amp;gt;= 1, 1, 0)"
},
"qCalcCondition": {
    "qCond": {
        "qv": ""
    },
    "qMsg": {
        "qv": ""
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1687685#M12543</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2020-03-25T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with qCalcCond on measure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1689302#M12565</link>
      <description>&lt;P&gt;not working still, tried with quotes, without quotes&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;return {&lt;BR /&gt;initialProperties: {&lt;BR /&gt;qHyperCubeDef: {&lt;BR /&gt;qDimensions: [],&lt;BR /&gt;qMeasures: [],&lt;BR /&gt;qInitialDataFetch: [{&lt;BR /&gt;qWidth: 50,&lt;BR /&gt;qHeight: 100&lt;BR /&gt;}],&lt;BR /&gt;qCalcCond: {&lt;BR /&gt;qv: "=GetSelectedCount(Currency) &amp;gt;= 1"&lt;BR /&gt;},&lt;BR /&gt;qCalcCondition: {&lt;BR /&gt;qCond: {&lt;BR /&gt;qv: ""&lt;BR /&gt;},&lt;BR /&gt;qMsg: {&lt;BR /&gt;qv: ""&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;definition: props,&lt;BR /&gt;snapshot: {&lt;BR /&gt;canTakeSnapshot: true&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;paint: function ( $element, layout ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-with-qCalcCond-on-measure/m-p/1689302#M12565</guid>
      <dc:creator>Akansha</dc:creator>
      <dc:date>2020-03-31T07:05:48Z</dc:date>
    </item>
  </channel>
</rss>

