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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

max in condition

hi

i have table like this:

OrderSpecificationDim_KeyTypeCheekDim_KeyadSanadId
13910023172026886
1391002317329402
13910023182026888
13910023192026890
13910023192329611
1391002320351628
13910023202329609
13910023202026892

i need too show TypeCheekDim_Key for any OrderSpecificationDim_Key forthe max value of adSanadId

for example when OrderSpecificationDim_Key=1391002320 i should show 3 because it has the biggest value of adSanadId. i have wrote :

if ( (Aggr(max([Ad Sanad Id]),[Id Order])=[Ad Sanad Id]),[Type Check Dim Key],0 )

but it is not true it seem. any one can help me?

31 Replies
Not applicable
Author

😞

antoniotiman
Master III
Master III

Try to remove Sum in Expression.

[Type check] instead of Sum([Type check])