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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis works if only one row is selected

Set analysis works if only one row is selected

I’m trying to find minimum price for minimum date for each product.
I use straight table chart with productID as dimension and this expression

Min({$<Date= {'$(=min(Date))'} >}  Price)

 
But it ignores the chart dimension, and works well if only one row is selected.
tables.png

Сообщение отредактировано: Uladzimir Kruhlik more data in application

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Check if fits your needs

View solution in original post

9 Replies
sundarakumar
Specialist II
Specialist II

Use the same expression in calculated dimension..

It will b shown in all rows.

Not applicable
Author

unfortunately this expression doesn't work as dimension.

Clever_Anjos
Employee
Employee

Check if fits your needs

jerem1234
Specialist II
Specialist II

See if this works for you:

FirstSortedValue(distinct aggr(min(PriseDay), ActionDate), ActionDate)

FirstSortedValue(distinct aggr(max(PriseDay), ActionDate), -ActionDate)

Please find attached.

Hope this helps!

Not applicable
Author

unfortunately this doesn't work on bigger amounts of data.

Not applicable
Author

I need to find the lowest price for the first day.

Clever_Anjos
Employee
Employee

This?Capturar.PNG.png

jerem1234
Specialist II
Specialist II

Hmm should work, try playing around with the formula. I don't know exactly what your data looks like so I can't be sure. For debugging, I'd start to see if aggr(min(PriseDay), ActionDate) returns all your min prices for each date by using maybe concat(aggr(min(PriseDay), ActionDate), '}'). Then firstsortedvalue should take the appropriate value when sorted by ActionDate.

If you could, post a sample with more data similar to your original app. Else try playing around with it.

Hope this helps!

Not applicable
Author

Thank You very much for your helpfulness and kindness.