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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sagarrahul
Creator
Creator

double data

this is my table

i want clm no to b printed but its not coming as it is coming double so can u help me in this

code used is below :

=FirstSortedValue(CLM_XGEN_CLAIM_NUM,-aggr(Max(if(len(KeepChar(CLM_XGEN_CLAIM_NUM,'-'))<>3,CLM_INTIMATION_DATE)),

POL_BDM_CODE,POL_BDM_NAME,HOSPITAL_CODE,HOSPITAL_NAME,CLM_INTIMATION_DATE,ICD_CODE_LEVEL1_org))

can u help me in this

POL_BDM_NAMEPOL_BDM_CODEHOSPITAL_NAMEHOSPITAL_CODECLM_LEVEL_OF_CAREICD_CODE_LEVEL1_orgClaim_TypeICD Code Blacklisttotal count of claimsValuestatusMax_dateclm_noCurrent_dateDiffernceclm_num
ASHISH HALLAN100169CURE WELL HOSPITALHEGIC-HS-01055PrimaryA09.9REIMBURSMENT111.000Outlier20-01-2016RR-HS15-1033368301/08/2016195-
ASHISH HALLAN100169CURE WELL HOSPITALHEGIC-HS-01055PrimaryL08.9REIMBURSMENT010.000Not Outlier20-01-2016RR-HS15-1033368301/08/2016195-
ASHISH HALLAN100169CURE WELL HOSPITALTotal

REIMBURSMENT111.000Outlier20-01-2016-01/08/2016195-
8 Replies
Anil_Babu_Samineni

Can you please post sample aplication

I request you to please, Don't create one issue for two threads.

Try to close this Thread

Re: same date occurring for two time but can tress another value

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
PrashantSangle

Hi,

It is because you have added "ICD_CODE_LEVEL1_org" in aggr() expression

try without it.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sagarrahul
Creator
Creator
Author

stil its not coming

jonathandienst
Partner - Champion III
Partner - Champion III

Its not double, you have multiple rows with different values of ICD_CODE_LEVEL1_org.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sagarrahul
Creator
Creator
Author

yes but how to bring clm_no in it

sagarrahul
Creator
Creator
Author

CLM_INTIMATION_DATECLM_XGEN_CLAIM_NUM
30-Dec-2015RC-HS15-10330521
30-Dec-2015RC-HS15-10330521
11-Jan-2016RC-HS15-10332140
25-Oct-2015RC-HS15-10306032-1
05-Apr-2016RC-HS16-10345459
05-Apr-2016RC-HS16-10345479

see i want max date ie (CLM_INTIMATION_DATE) and clm_no ie (CLM_XGEN_CLAIM_NUM)

but when it comes two same date then i want its max clm_no

output :

05-Apr-2016                RC-HS16-10345479    


now can any1 help me in this

Anil_Babu_Samineni

Why not this

Max(CLM_INTIMATION_DATE) & Max(CLM_XGEN_CLAIM_NUM)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jonathandienst
Partner - Champion III
Partner - Champion III

>>but when it comes two same date then i want its max clm_no

For the tiny glimpse onto your data, the two clm_no values are identical.

i suggest that you post a small sample qvw with some representative data and a clear statement about what you are attempting to calculate and what your expected results.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein