Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
LucasMendes
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 (3)
2 Replies
Patrik_Lundblad
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. 

LucasMendes
Contributor
Contributor
Author

Hi Plu,

still getting the same problem...

Qlik is getting only the last one : 

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