Marcio Souza Posted May 24, 2020 Share Posted May 24, 2020 Hi There! I'm struggling to understand an error message when trying to make a custom expression for Calculated Value. Here is the Calculated Expression: CASE WHEN [name] = "${markedLiga}" THEN uniquecount([match_api_id]) over (All([league_id])) ELSE uniquecount([match_api_id]) over (All([country_id])) ENDUsing the "uniquecount([match_api_id]) over (All([league_id]))" alone in the Calculated Expression it will work, but it doesn't work when wrapped by the CASE WHEN above mentioned. What I'm missing here I'm getting a "Please specify an aggregation method" error when clicking the OK button. Regards, Marcio Link to comment Share on other sites More sharing options...
Manoj Singh Posted May 25, 2020 Share Posted May 25, 2020 You need to specify an aggregation method before the case(). Refer to the documentation link:https://docs.tibco.com/pub/spotfire/7.0.0/doc/html/ncfe/ncfe_aggregations_in_expressions.htm Link to comment Share on other sites More sharing options...
Marcio Souza Posted May 25, 2020 Author Share Posted May 25, 2020 Thank you, Manoj Singh! 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