Forum Discussion

Milozebre's avatar
Milozebre
Helper V
6 years ago
Solved

Use variable in measure

Hello Community,    I hope you are well and that containment is not too difficult. I have a problem with the parameters and my measurements. I am doing my math class and I would like to make a ...
  • v-kelly-msft's avatar
    6 years ago

    Hi Milozebre

     

    You can modify your formula as below:

     

    Measure = SWITCH(SELECTVALUE(SI(GAUCHE(CV_calculation_rule;1)),"1";SELECTEDVALUE(CK2);
    "2";SELECTEDVALUE(CL2);"4";SELECTEDVALUE(CM2);RECHERCHEV(A2;'Comp database'!A:V;22;0))

     

    I'm not sure what does "SI""GAUCHE""RECHERCHEV"mean?Are they all tables' names?The measure can be simply described as :

     

    measure= SWITCH([measure],"case 1","value 1","case 2,"value 2",...[else])

     

     

    Best Regards,
    Kelly
    Did I answer your question? Mark my post as a solution!