Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaykakkar93
Specialist III
Specialist III

Can we calculate Master Measure using Engine API?

Hi All,

    I need your help on calculating a master measure from Engine API, Can it be done.

  1. Master Measure is made from dashboard
  2. We can get the qLibraryId from Qlik Engine Macros : List Measure
  3. Now i want to calculate it i am using a different approach (ill agg my approach in this message)
    1. i am making a HyperCube to get this calculated in the below way
    2. ---------------------------------
      "qLibraryId" Master measure id here
      ---------------------------------
      
      {
        "jsonrpc": "2.0",
        "id": 2,
        "method": "CreateChild",
        "handle": 2,
        "params": [
          {
            "qInfo": {
              "qId": "Chart1",
              "qType": "Chart"
            },
            "qHyperCubeDef": {
              "qStateName": "$",
              "qMeasures": [
                {
                  "qLibraryId": "bMYBRC"
                }
              ],
              "qInitialDataFetch": [
                {
                  "qTop": 0,
                  "qLeft": 0,
                  "qHeight": 100,
                  "qWidth": 100
                }
              ]
            }
          }
        ]
      }
      --------------------------------------
      GetLayout
      --------------------------------------
      {
      	"handle": 2,
      	"method": "GetLayout",
      	"params": {}
      }

      ----------------------------------------------------------------------------------------------------------------------
      IS THIS THE CORRECT APPROACH, If you can suggest a quick aproach ill be happy to try it out
      ----------------------------------------------------------------------------------------------------------------------

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

Labels (3)
0 Replies