Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

More than 10 rows/dimensions in QlikSense extension

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!

 

Labels (4)
2 Replies
Highlighted
Employee
Employee

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. 

Highlighted
Contributor
Contributor

Hi Plu,

still getting the same problem...

Qlik is getting only the last one : 

{"qDef" : "Count(Quantidade)"}