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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

get max date value

Hi Community,

I have to show max date value in straight table - for below selection i have to show max Extract date, that should be 30/07/2019 and respective value BCD -2000. 

I have tried with  : SUM({<ADV_ExtractDate={'$(=Max(ADV_ExtractDate))'}>}Amount), but it's not working .

can you please help..

 

Thanks in Advance!

Labels (1)
21 Replies
paulwalker
Creator III
Creator III
Author

Apologies, may be I'm not explaining properly..

Sunny, have used, but showing few records..

2.PNG

Below screen, we have 10 ContactID's - these should be align to services..

1.PNG

So, my output should be..

AdviserNameLOE IssuedLOE ReceivedWriteIssued
Andrew Savage-20002000-
Claire Keen2000---
Ian Waddell (Onshore)53002550--
Ken McCall34003400--
Kevin  Taylor (Onshore)4800---
Regina Tan-1300050005000

Highlighted in Green already covered in LOE Received and Issued, it should not be in other services (Highlighted in red- not should be present).

Hope you understand!

sunny_talwar

Do you mean that if the value is the same it should not repeat in multiple Services? but otherwise it can? I am confused because why do we have Ian show up in multiple Services?

Capture.PNG

paulwalker
Creator III
Creator III
Author

I'm sorry, Have not selected July. July should be below screen.

By default - data should be club.

Ian has 2 ContactId's (25531683, 27205242), but service level associating one ID(25531683).

Service has different mapping using with StatusID

AdviserNameLOE IssuedLOE ReceivedWriteIssued
Andrew Savage-20002000-
Claire Keen2000---
Ian Waddell (Onshore)2750---
Ken McCall34003400--
Kevin  Taylor (Onshore)4800---
Regina Tan-1300050005000
sunny_talwar

Yet again, why do we see LOE Received and Issued number for Regina Tan when we only need to have a single number for Service?

image.png

paulwalker
Creator III
Creator III
Author

For Regin Tan has 2 records 6000 and 7000 = 13000

below screens...

Example 1: For ContactID =20346419 has two services, but we should take - maximum date of ADV_ExtractDate

1.PNG

it should consider LOE Received

2.PNG

Example2: for 20352236 has two services, but we should take - maximum date of ADV_ExtractDate

3.PNG

it should consider LOE Received

4.PNG

Example 3: for 26861834, Please note here - StatusID we have 2(16161 and 16185) - Service associating with one StatusID 

For Service list - 16185 we are not considering for Service, if we consider 13000 value could be in two service.

5.PNG

Each opportunity (Amount) will only appear once on this Report.

Hope it helps!...

sunny_talwar

Why is StatusId coming into play for 26861834 and not for 20346419?

image.png

I think we are having a tough time understanding what you are trying to get here and why?

paulwalker
Creator III
Creator III
Author

StatusID should be for all the ContactID's, StatusID mapping for Services.

Just what i need, which is the maximum date of ADV_ExtractDate Amount.

Each opportunity(Amount) will only appear once in the table, it should not be appear in different levels.

sunny_talwar

Can you try this

Sum(Aggr(If(ADV_ExtractDate = Max({<Service *= {"*"}>}Total <AdviserName, ContactID> ADV_ExtractDate), Sum(Amount)), AdviserName, Service, ADV_ExtractDate, %Key, ContactID))
paulwalker
Creator III
Creator III
Author

Thanks Sunny, this is what i'm expecting!..

Have one more - If you could help me, much appreciated!

Cumulative Report:  Within the defined period, how much value has flowed through the system for July

Column1LOE issuedLOE Received Issued 
Ian Waddell   
Andy Savage 2000 
Claire Keen   
Regina Tan13000130005000
sunny_talwar

Please close this thread and open a new one for this.

Thank you,
Sunny