Skip to main content
Hi, how can I write the value of a KPI into a variable, to use the value in another Views component? Thanks!

Hi Lukas, there are many options to use a KPI in different views based on your specific needs and use case: 

- The easiest approach is to re-use the KPI in different views as KPIs are not being tied to a specific view. This solution is appropriate if you want the KPI in your new view to update whenever it is generally updated in the data source.

- If you are interested in a specific version of the KPI, a hard-coded parameter is needed. In this specific case, you can create a variable in your Knowledge Model and call the KPI as a value for this variable. 

- If the KPI relies on a value from another component, like a dropdown selection, consider using a runtime variable in the KPI for your new view.

 

Let me know if one of the options work for you or if you need further clarification. 


Hi Lukas, there are many options to use a KPI in different views based on your specific needs and use case: 

- The easiest approach is to re-use the KPI in different views as KPIs are not being tied to a specific view. This solution is appropriate if you want the KPI in your new view to update whenever it is generally updated in the data source.

- If you are interested in a specific version of the KPI, a hard-coded parameter is needed. In this specific case, you can create a variable in your Knowledge Model and call the KPI as a value for this variable. 

- If the KPI relies on a value from another component, like a dropdown selection, consider using a runtime variable in the KPI for your new view.

 

Let me know if one of the options work for you or if you need further clarification. 

Hi Sophie,

 

Can you please elaborate on the second option? Thank you.


Hi Sophie,

 

Can you please elaborate on the second option? Thank you.

Hi Rashid, sure! Thank you for bringing up this topic.

You can create the KPI as usual in your knowledge model. Then, create a variable in your knowledge model and assign the KPI ID as the value of the variable (KPI("KPI_ID")). I hope this helps!


Reply