Skip to main content
Question

Hi Team, Do we have an Variable Input Component in Views?

  • February 12, 2023
  • 6 replies
  • 6 views

I wanted to create a KPI with reference to Variable <%= Discount %> (Users could define their Discount value). For example KPI as Actual Sales:

(KPI (Sales)- KPI(Sales)* <%= Discount %>)).

I'm able to create it in Analysis by defining Variable and adding the VARIABLE INPUT (Users may add their discounted values) Component however not in Views.

image

6 replies

Forum|alt.badge.img

Hi,

 

You can try use Input Box component and 'onChange' function for that.

Variable will be updated automatically.

imageInput Box (celonis.com)

 

Regards


  • Level 1
  • February 13, 2023

Hi,

 

You can try use Input Box component and 'onChange' function for that.

Variable will be updated automatically.

imageInput Box (celonis.com)

 

Regards

Agreed, don't forget to define the variable:

 

metadata: ...

variable:

- id: id-of-the-variable

name: variableName

defaultValue: myDefault

 


  • Author
  • Level 2
  • February 14, 2023

Hi,

 

You can try use Input Box component and 'onChange' function for that.

Variable will be updated automatically.

imageInput Box (celonis.com)

 

Regards

Hello Marcin,

 

I tried above mentioned approach, however the variable is not changing dynamically. Could you please suggest what I'm missing below ?

 

Steps I followed:

  1. Defined Variable under KM with default value 10

image2. Calling that variable in input-box.

imageAs you can see below, if I change the variable to 20, the Sales * my_var column is not updating it stays as default value i.e. Sales * default value 10

image


  • Author
  • Level 2
  • February 16, 2023

Hello Marcin,

 

I tried above mentioned approach, however the variable is not changing dynamically. Could you please suggest what I'm missing below ?

 

Steps I followed:

  1. Defined Variable under KM with default value 10

image2. Calling that variable in input-box.

imageAs you can see below, if I change the variable to 20, the Sales * my_var column is not updating it stays as default value i.e. Sales * default value 10

image

@marcin.szcze12 @hanna.franz Could you please let me know what I'm missing in above steps ?


Forum|alt.badge.img

Hello Marcin,

 

I tried above mentioned approach, however the variable is not changing dynamically. Could you please suggest what I'm missing below ?

 

Steps I followed:

  1. Defined Variable under KM with default value 10

image2. Calling that variable in input-box.

imageAs you can see below, if I change the variable to 20, the Sales * my_var column is not updating it stays as default value i.e. Sales * default value 10

image

@gundappa.s11 Sorry for replying so late, if you still have problems with changing variable could you please share printscreens once again as I can not see them?

image


  • Author
  • Level 2
  • February 20, 2023

Hello Marcin,

 

I tried above mentioned approach, however the variable is not changing dynamically. Could you please suggest what I'm missing below ?

 

Steps I followed:

  1. Defined Variable under KM with default value 10

image2. Calling that variable in input-box.

imageAs you can see below, if I change the variable to 20, the Sales * my_var column is not updating it stays as default value i.e. Sales * default value 10

image

@marcin.szcze12 Please find the below printscreens for your reference.

image 

image