Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where to put 'qType' in the hypercube definition

When using the code created from the dev-hub, one cannot specify the qType for the measures.

Neither is the qType key (with default U) visible in the created code.

My question is:

Where must I put this qType attribute in the definition?

It must be somewhere here. (but where, with which 'parent' node) ?

{

  "qLabel": "Top 1 Preis",

  "qLibraryId": "Ljymc",

  "qSortBy": {

  "qSortByState": 0,

  "qSortByFrequency": 0,

  "qSortByNumeric": 0,

  "qSortByAscii": 1,

  "qSortByLoadOrder": 0,

  "qSortByExpression": 0,

  "qExpression": {

  "qv": " "

  }

  }

  }

2 Replies
Not applicable
Author

We searched alot but still no clue 😕

It would be 'stupid' if we need to deal with formats in the frontend-code.

Because technically qlik can give us the correct formats.

Not applicable
Author

I got an answer I would like to share in case anyone will end up having the same problem:

This is the right spot for the qType:

"qMeasures":

[ { "qLibraryId": "", "qSortBy": { "qSortByState": 0, "qSortByFrequency": 0, "qSortByNumeric": 0, "qSortByAscii": 0, "qSortByLoadOrder": 1, "qSortByExpression": 0, "qExpression": { "qv": "" } }, "qDef":

{

"qNumFormat":

{ "qType": "I",

"qnDec": 0, "qUseThou": 1,

"qFmt": "###0",

  "qDec": "," }

} } ],