Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Smallest value per dimension-element

Hi,

I have the following problem:


Source-Table is

Seller | Product | Price

S1 | P1 | 3.09

S1 | P2 | 3.29

S1 | P3 | 6.09

S2 | P1 | 2.99

S2 | P2 | 3,49

S2 | P3 | 5.39

S3 | P1 | 3.19

S3 | P2 | 2.59

S3 | P3 | 6,49

Desired Table with best price per product

Seller | Product | Price

S2 | P1 | 2.99

S3 | P2 | 2.59

S2 | P3 | 5.39


How can I solve this? Maybe a question of designing the formula.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Perhaps not the best of the expressions but would solve your problem

Add Product & Seller in dimensions and in the expression write

= if ( min(total < Product> Price) - Price < 0 , 0, Price)

Now supress Zero values in the presentaitons Tab and it works

Again not the ideal solution I guess

View solution in original post

2 Replies
Not applicable
Author

Hi,

Perhaps not the best of the expressions but would solve your problem

Add Product & Seller in dimensions and in the expression write

= if ( min(total < Product> Price) - Price < 0 , 0, Price)

Now supress Zero values in the presentaitons Tab and it works

Again not the ideal solution I guess

Not applicable
Author

It works ! Big Smile

Thank you Umang