How to create a measure using other measures results

Hello Guys.

I’m trying to use two measures to create a third measure. (like the documentation example)
Basically, I want to calculate the success rate.

measures: {
    successRuns: {
      type: `count`,
      drillMembers: [status],
      filters: [{ sql: `${CUBE}.status = 'SUCCEESS'` }],
    },
    totalRuns: {
      type: `count`,
      drillMembers: [status],
    },
    sucessfullPercentege: {
      sql: `(${successRuns} * 100) / ${totalRuns}`,
      type: `number`,
      format: `percent`,
    },
  },

but when I try to use it i’m receiving the following error:

invalid reference to FROM-clause entry for table &quot runs

Any suggestion?
Thanks!