TIPS AND TECHNIQUES ISSUE #26: FLOOR function – login count In this Tips and Techniques article, the FLOOR function plays an important part in displaying our data data. The FLOOR function rounds each value down to the nearest multiple of significance. Before you begin you need to know: The formula for the X:Axis called “Time every 15 minutes”: DATEVALUE( CUMULATIVE( CUMULATIVE ARRAY( FLOOR( (NOW( ) – 86400 400 ) , 900 ) , REPEAT( 900 , 4 ) , data ) ) , “M/d/yy HH:mm” , “GMT-4” 4” ) Result: When evaluated, five date items are returned starting from 7/28/14 14:45 to 7/28/14 15:45. Today’s date is 7/29/14. • The CUMULATIVE function calculates a sequence of partial sums. • The REPEAT function adds 15 minute time blocks up to a maximum of four times times. The formula for the Series is: • 900 seconds is the equivalent of 15 minutes minutes. LOOKUP( Time every 15 minutes , • 86400 seconds is the equivalent of 1 day day. By specifying NOW( ) – 86400 the formula returns the times for the previous day. GROUP( DATEVALUE( FLOOR( DATE( A:A , “M/d/yy “HH:mm” , timezone ) , 900 ) , “M/d/yy HH:mm” , timezone ) ) , • Use the Insert literal string or number button to specify the correct time-zone in the X:A X:Axis. For example, GMT-4. COUNTDISTINCT ( DATEVALUE( DATEVAL FLOOR( DATE( A:A , “M/d/yy HH:mm” , timezone ) , 900 ) , “M/d/yy HH:mm” , timezone ) ) ) • You must also be familiar with the DATE and DATEVALUE functions covered in an earlier article. Note: Use the REF button to insert inse the reference to the X:Axis called Time every 15 minutes. minutes Tip: The NOW function updates when the data source for the Klip refreshes with new data. For example, the X-Axis values update when the data source refreshes and there is new data which might not be every 15 minutes. Result: If you evaluate the GROUP part of this formula the result is: 7/28/14 14:00, 7/28/14 14:30, and 7/28/14 15:15 .If you evaluate the COUNTDISTINCT part of this formula the result is 1, 7 and an 2. Let’s look at an example from our Support Desk that counts the number of logins in 15 minutes intervals. Contact support@klipfolio.com for any additional help or information