Skip to main content
Question

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

  • Feb 12, 2023 2:52 PM UTC
  • 6 replies
  • 80 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
  • Feb 13, 2023 1:36 PM UTC

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
  • Feb 14, 2023 4:26 PM UTC

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
  • Feb 16, 2023 5:48 PM UTC

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
  • Feb 20, 2023 8:06 AM UTC

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