cube-js/cube

Use input values in calculated measures

Open

#1,865 opened on Jan 24, 2021

View on GitHub
 (3 comments) (0 reactions) (1 assignee)Rust (19,563 stars) (1,965 forks)batch import
backend:serverhelp wanted

Description

Is your feature request related to a problem? Please describe. I would like to use one or more user inputs in calculated measures. This will allow me to implement what-if scenarios. For example, if I have insurance liability data and evaluate liability by various dimensions based on the probability of an event occurring (e.g. earthquake), users may input a probability in percentage and measures should recalculated using this value in real-time.

Describe the solution you'd like

  1. Ability to pass custom parameters in query
  2. Availability of these parameters in server side so that they can be referenced in measure formula

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Contributor guide

Use input values in calculated measures · cube-js/cube#1865 | Good First Issue