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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
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


hello Antonio

well,it doesn't work 😞

antoniotiman
Master III
Master III

Order.png

anbu1984
Master III
Master III

Dimension: OrderSpecificationDim_Key

Expression: FirstSortedValue(TypeCheekDim_Key,-adSanadId)

137133.png

Not applicable
Author

hi

it doesnt work in my qlikview. i have attached it.

id order=orderspecification_key

Not applicable
Author

hello

it doesnt work in my qlikview file. i have attached it.

id order=orderspecification_key

Not applicable
Author

if you could correct it would you pls write it here?

Not applicable
Author

if you could correct it would you pls write it here?

anbu1984
Master III
Master III

Can you give [id order] where it is not working? What is expected value?

Not applicable
Author

id order is the field. orderspecification_key is just a name.

anbu1984
Master III
Master III

I mean can you give example from your QVW, for which id order you are not getting correct result for TypeCheekDim_Key