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

Show only earliest value in a day

Hi,

How do I show only an earliest value in a selected day..

Ex: 

CaseValueTimeDateSalesPerson
1ABC6:00 AM1/1/2019Mary
2BCD6:30 AM1/1/2019Mary
3CDE8:50 AM2/2/2019Mary
4EFG10:00 AM9/15/2019John
5HIJ12:00 PM3/22/2019Doug
6KLM7:30 AM5/5/2019Andrew
7NOP7:15 AM5/5/2019Andrew

 

I'd like to show/count Case 1 for Mary for date 01/01/2019 cus that's the earliest case (with time stamp) for her that day and not count case 2 or case 3.

Same for Sales Person Andrew

Would like to count only Case # 7 as that was done 07:15 AM

I tried Peek and also Firstvalue

NoConcatenate


Data:


Load Case ,


FirstValue(Value) as Value


Resident Dim Group by Case;

This gives me the answer but in expression it's getting messed up.

Thanks.

Labels (1)
56 Replies
MK9885
Master II
Master II
Author

Tried, did not work.

Thanks

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

MC.PNG

MK9885
Master II
Master II
Author

Thank you..

I'll test this tomorrow?

A quick check looks good... I'm having like a complete data model, need to verify across all dashboard.

So far it's good.. thanks a lot.

MK9885
Master II
Master II
Author

This expression you gave seem to work only in straight table.

Not working in Bar chart.. maybe cus using RANK?

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Can you attach the app?

MK9885
Master II
Master II
Author

I'm trying to count earliest case for that day for that particular person.

Rest should also show up... expression you gave only shows 1st case but doesn't show rest of the cases.

Counting all the cases but if there are multiple cases on same day, I would like to count only 1st case for the day, not multiple.

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Can you attach your expected result?

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Do you mean like this?

MC.PNG

Can you also share the issue you are having with bar chart?

No issue with me creating this table in bar chart.

MK9885
Master II
Master II
Author

If I clear all selections & use Year filer 2018, Month Oct, I should get 5 counts.

If you look at data I gave you, that person has total count as 6. But since we are doing 1st case for the day, 10/01/2018 at 07:30 AM will be counted, not the second case on that day. 

Actual app consists of a lot of data sources. thats why i cannot upload it here

I'm using a calculated dimension for this chart, which says if variance is <=7, term is at On-time, between 8-15 as late etc..

 

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

You are counting case on time here,which gives you 3, rather than 6:MC.PNG

I would suggest you to count by Case ID.