Sudhansu Mishra Posted February 25, 2019 Share Posted February 25, 2019 HI , I've a timeSpan column data in the form of HH:MM: SS.xxx. I'd like to use a normalization operation for data visualization as follows: Sum([ValueY])/Sum(If[TimeX]='11:45:00.000', [TimeX],0) over (All[TimeX]) But I get an error /warning which means it's unable to compare the [TimeX] values to absolute time 11:45:00.000 which is a value in the column. Could someone help me understand how to use logical comparators with timestamp data Error: Invalid type for function call '='. I've to use an inverted comma for the absolute timestamp or else Spotfire returns an expected error. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted February 25, 2019 Share Posted February 25, 2019 Hi You cannot have an if statement where the true option is a timespan and the false option is an integer. Try replacing the 0 option with TimeSpan("0") Gaia 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