Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Set dimension display format in hypercube

I am creating a hypercube as per the below and formatting the measure as a % using the Qlik num() function.  I am sure there must be a better way - Any ideas ?  

app.createCube({

qDimensions : [{

qDef : { qFieldDefs : ["BU"] ,

qSortCriterias: [{qSortByAscii: 1}]

}},

],

qMeasures: [

{qDef: {qDef: "num($(vPercentTargetOTP15mtd),'#0.0%')",qLabel: "kpiBuMtdOtp15Target"}},

],

qInitialDataFetch: [{qHeight: 40,qWidth: 44}]

}

,arrayBuMtdKpi);