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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

how do i rank this?

rank(

sum( {$< Month = {"<= $(=Max(Month))"}>} (((value1*value2)/vale3)/10))/Max(Month)

)

this works when i only have material_ID as dimension. When i put both material_ID and material_descriptions as dimensions, all values of the above expression will be 1 .. how can is solve this? i need two dimensions

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi Amien,

probably your dimensions result in a single record per combination of dimensions?

Try using the TOTAL qualifier, maybe

rank( TOTAL

sum( {$< Month = {"<= $(=Max(Month))"}>} (((value1*value2)/vale3)/10))/Max(Month)

)

Regards,

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

Hi Amien,

probably your dimensions result in a single record per combination of dimensions?

Try using the TOTAL qualifier, maybe

rank( TOTAL

sum( {$< Month = {"<= $(=Max(Month))"}>} (((value1*value2)/vale3)/10))/Max(Month)

)

Regards,

Stefan

tmumaw
Specialist II
Specialist II

Create a concatinate key with your material and description and rank on that.