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

GetObjectMeasure() of a specific object

Hello,

I need to get the measure of an object in Qlik sense.

The problem is that the syntax of the formula GetobjectMeasure () is supposed to be GetobjectMeasure (Index, 'ObjectID') but that does not seem to work.

The need is as follows:

I have a Dashboard with 11 tabs and for each tab more than 30 formulas of all kinds (color, measure and dimension). That makes me a total of 450 formulas to maintain! (not at all practical but that's how it is).

Each tab concerns a specific customer with specific KPIs for that customer. I would like to find a way to populate the customer key somewhere and use variables instead of customer code. Now the variable is applied by everything in the document.
So the only solution for me is to use a text box in which I fill in the client key and use the getobjectmeasure () function that will read the client code from this object.
but that does not seem to work because I can not call the measure of a specified object!

 

Someone can help me ??

1 Reply
iharsh220
Contributor III
Contributor III

hello,

i dont understand what you exactly want ?

if you are using listofmeasure / listofdimension api it will gives all the list of measure/dimension. 

and there is no function called getobjectmeasure()

there we have api called getobject()/getObjects() you can pass object id or get all objects 

else if you want dimension or measure just use GetDimension()/GetMeasure() 

{
"handle": 1,
"method": "GetMeasure/GetDimension",
"params": {
"qId": ""
}
}

you just have to pass qID

Thanks & Regard

Harsh Gohil