Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Common Date

Hi!

I have a data file that contains Date and Product. Example:

Date                              Product

1/2/2016 00:12 AM       ProductA

3/12/2016 8:12 AM       ProductB

...

6/27/2016 5:54 PM       ProductZ

i want to get the peek hours of a product regardless of the date. I just need the time. For example, product A is sold mostly at 5:00 PM.

I used the expression Time(date(Date)) but it returns all instances of time in each date. I just want all common instances of time to appear once. Thank you!

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Time(Date(Date) - Floor(Date(Date)))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Time(Date(Date) - Floor(Date(Date)))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

hi,

Try

=Hour(Date)

-TR,

Abdul

Not applicable
Author

Really worked for this situation. Thanks!