azlin azis 2 Posted March 14, 2017 Share Posted March 14, 2017 Hi All, been browsing around the community and trying to add the IF statement in Spotfire 7.6; however it is returning error "Invalid type for function call if" Can anybody help on this Is it due to the fact that the data table connection properties Link to comment Share on other sites More sharing options...
Ali El Shaia Posted March 14, 2017 Share Posted March 14, 2017 Hi azlin.azis, Are you working with in-memory data, or external (in-database) data If you are working with external data, using the data connectors, they all support different functions depending on the type of source. This is usually written in the documentation in the help topics. For example under the connectors topic on the following link: https://docs.tibco.com/pub/sfire-analyst/7.8.0/doc/html/en-US/TIB_sfire-... Link to comment Share on other sites More sharing options...
barry pegado Posted March 14, 2017 Share Posted March 14, 2017 If you are using this expression in calculate column then it should work fine. And if you are using it in 'Values' the you need to provide aggregation. Link to comment Share on other sites More sharing options...
Sean Riley Posted March 14, 2017 Share Posted March 14, 2017 Please see this KB which explains this message: KB: Custom expression with If() function returns error "Invalid type for function call 'if'" https://support.tibco.com/s/article/ka11a000000HqbuAAC/Tibco-KnowledgeArticle-Article-47852 Link to comment Share on other sites More sharing options...
K Clark Posted June 7, 2017 Share Posted June 7, 2017 This is not a good link. Link to comment Share on other sites More sharing options...
Sean Riley Posted June 7, 2017 Share Posted June 7, 2017 FIxed. There was an extra http prefix inserted. Link to comment Share on other sites More sharing options...
Amol Gargote Posted July 25, 2019 Share Posted July 25, 2019 Thanks. It worked perfectly. 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