0 Replies Latest reply: Jun 12, 2017 1:49 PM by Timothy So RSS

    Measure created using the CreateMeasure method not showing up in Master Items

    Timothy So

      Hi everyone,

       

      I've created a measure using the Engine API's CreateMeasure method:

       

      var request3 =

        {

        "jsonrpc": "2.0",

        "handle": 1,

        "method": "CreateMeasure",

        "params": [

        {

        "qInfo": {

        "qID":"Measure01",

        "qType":"Measure"

       

       

        },

        "qMeasure": {

        "qLabel":"YTD Sales 2017",

        "qDef":"Sum({<yearweek={\">=201701\"}>}sales)",

        "qExpressions": [

        "Sum({<yearweek={\">=201701\"}>}sales)"

        ],

        }

        }

        ],

        "id": 3

        };

       

      The server responded and looked fine:

       

      {"jsonrpc":"2.0","id":3,"result":{"qReturn":{"qType":"GenericMeasure","qHandle":2,"qGenericType":"Measure","qGenericId":"d6519538-8145-44a0-8082-1b2c28e0198d"},"qInfo":{"qId":"d6519538-8145-44a0-8082-1b2c28e0198d","qType":"Measure"}},"change":[2]}


      However when I tried to locate the same in the Sense UI, it's still showing up as empty.


      Capture.JPG


      Would anyone be able to help me out?


      Thanks in advance!


      Tim