Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
arethaking
Creator II
Creator II

How to calculate bits?

Hi All, hic

Date(Floor(Timestamp)) as Date,
   Time(Floor(Frac(Timestamp),1/24/60)) as Time,
These expressions will give you at most 24*60=1440 distinct time values (11 bits) and typically 365 distinct dates (9 bits)

How to calculate bits? How 11 bits and 9 bits?

Thanks in advance.

2 Replies
tresesco
MVP
MVP

hic
Former Employee
Former Employee

You use 2 to the power of N to calculate how many values N bits can hold:

  

Number of bitsNumber of values
12
24
38
8256
9512
101024
112048

Then it is easy to see that 366 days fit in 9 bits, and 1440 minutes fit in 11 bits.

HIC