Pei Hsuan Shen 2 Posted October 22, 2019 Share Posted October 22, 2019 I am reading the document onhttps://docs.tibco.com/pub/spotfire/7.0.0/doc/html/ncfe/ncfe_using_expressions_on_aggregated_data_the_then_keyword.htm. The example shows that "Examples: Instead of: Sum([sales]) OVER (AllPrevious([Axis.X])) Use: Sum([sales]) THEN Sum([Value]) OVER (AllPrevious([Axis.X]))". But as far as I know, Value is equal to Sum([sales]). So, the use becomes that "Use: Sum([sum([sales])]) OVER (AllPrevious([Axis.X]))". I am confused. Can someone tell me what wrong is Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted October 29, 2019 Share Posted October 29, 2019 That example is very simple example so Sum([sales]) OVER (AllPrevious([Axis.X])) =Sum([sales]) THEN Sum([Value]) OVER (AllPrevious([Axis.X])) If there is a usecase to sum up avg values ofall previous X-Axis then it can be easily done with "THEN" like Avg([sales]) then Sum([sales]) OVER (AllPrevious([Axis.X])) 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