Martin Campos Posted December 17, 2020 Share Posted December 17, 2020 I have this in a bar chart to calculate the sum of revenue for one year in the company sum([Revenue]) but I want to change the sum() for avg() with some function, its posible with a property or filter I want to do this dinamically, I dont want to change manual. Its posible Thanks Link to comment Share on other sites More sharing options...
Gaia Paolini Posted December 17, 2020 Share Posted December 17, 2020 You can define the function as a string document property in a dropdown action control within a textarea. Say your document property is called ${axis} and takes values Sum or Avg (using Set property value through: Fixed values) Then change the custom expression of your axis to ${axis}([Revenue]) Link to comment Share on other sites More sharing options...
Martin Campos Posted December 18, 2020 Author Share Posted December 18, 2020 Thank you!! it works, butI put a property in list box and I assign a property in a drop down list these two expressions:Revenue - Expresion ( Sum(If([Origen de los datos]="BO",[NET_AFI_REVENUE_PER_ROOM])) as [$ OTB], Sum([FACT_BUDGET_FORECAST_VIEW].[REVENUE]) as [$ Forecast])I want to choose only one of two custom expresion to kpi chart because send me a message: "multiple continuous expressions are not allowed" Thanks Link to comment Share on other sites More sharing options...
Gaia Paolini Posted December 18, 2020 Share Posted December 18, 2020 I see you added this as a new question, but I don't understand it. https://community.tibco.com/questions/its-posible-take-one-custom-expressions-we-create Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now