Youcef Boubellouta Posted February 20, 2021 Share Posted February 20, 2021 I want to create time bins with 12 hours on the x-axis, I couldn't find the function in Spotfire, I tried the functionBinByDateTime but it's not what I'm looking for, please find attached the screenshot of barschart which i want to create. Link to comment Share on other sites More sharing options...
Fabian Duerr Posted February 21, 2021 Share Posted February 21, 2021 You could do some binning for example with: BinByEvenDistance(DateDiff("hour",[your.dttm.column],Min([your.dttm.column])),12) So, you would first calculate the time difference to a reference value (here MIN) and then bin by even distance, where your distance is 12. But I think you maybe only want to have the bins before/after noon... For this you could use the Hour() function to check if it returns = 12: If(Hour([your.dttm.column]) Link to comment Share on other sites More sharing options...
Youcef Boubellouta Posted February 22, 2021 Author Share Posted February 22, 2021 Thank you verry much ;) 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