Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

convert result from value to dimension

Hi I have text box which shows max value of price/cost according to product dimension. I want to show product name in text box.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

I already answered in your previous post, but here we go

=Only({1}

If(

Aggr(

Rank(

Sum({1< Employee = {'Jae Pak', 'Tsvi Reiter'} >} UnitPrice) / Sum({1< Employee = {'Jae Pak', 'Tsvi Reiter'} >} TotalProductCost), 4, 1)

, Product) = 1

, Product)

)

Kind of cumbersome because of the selection, that you want to ignore, hence all those {1}.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

View solution in original post

1 Reply
Miguel_Angel_Baeyens

Hi,

I already answered in your previous post, but here we go

=Only({1}

If(

Aggr(

Rank(

Sum({1< Employee = {'Jae Pak', 'Tsvi Reiter'} >} UnitPrice) / Sum({1< Employee = {'Jae Pak', 'Tsvi Reiter'} >} TotalProductCost), 4, 1)

, Product) = 1

, Product)

)

Kind of cumbersome because of the selection, that you want to ignore, hence all those {1}.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica