Do you mean that you want to simply compute the expression for current selections, or do you want to create a cube that evaluates the expression over a set of dimensions? It sort of sounded like in you description that you were looking for just one value.
Anyway, I would probably start with debugging the expression. Have you tried to add your expression to a regular KPI and see if it gives you the expected result?
Yeah I have checked my expression in simple KPI, its fetching the values. And after doing any selection its changing accordingly. I am getting the expected result from the expression.
The expression which I am trying to fetch using hypercube is quite a complex(like I am using set analysis and lot of variables) then I added the expression in master item and writing the hypercube script accordingly to add the measure in the .js file.
My objective- Once the hypercube expression is added in the mashup, I am planning to show an alert pop up which gets active when the value of my expression exceeds a threshold value. So once the user logged in, the selection is applied as USER_NAME.
So I want the filter should be applied on hypercube expression as well and the user should get the alert if the value of hypercube exceeds for him/her.
Is it possible in hypercube that if I do some selection in the app, the value of hypercube also changes accordingly as it happens for Qlik Sense objects?