Discussion board where members can learn more about Qlik Sense App Development and Usage.
Hi,
I'm facing a problem...I can't create more than one measure :
return new Promise(function (resolve, reject) {
app.createCube({
"qDimensions": [{
"qDef": {
"qFieldDefs": [tmpDim],
"cId": tmpcId
}
}],
"qMeasures": [{
"qDef" : {"qDef" : "Sum(Quantidade)"},
"qDef" : {"qDef" : "Count(Quantidade)"}
}],
"qInitialDataFetch": [{
qHeight: h,
qWidth: w
}]
},
Qlik Sense considers only the last one measure: "qDef" : {"qDef" : "Count(Quantidade)"}
Why is this happenning?
To better clarify, I need to create an hypercube(only one) wich allows me to create dinamic measures and then send it to data object from my chart ( to another extension - AnyChart)...
Because my chart uses only one Hypercube...
Thank you in advance!
Hi Lucas,
I believe you got your curly brackets wrong on the measure.
Try this
"qMeasures": [ {"qDef" : {"qDef" : "Sum(Quantidade)"}}, {"qDef" : {"qDef" : "Count(Quantidade)"}} ],
Regards,
Patrik.
Hi Plu,
still getting the same problem...
Qlik is getting only the last one :
{"qDef" : "Count(Quantidade)"}