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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
maxsheva
Creator II
Creator II

Pick a Day with lowest sales in a text box

HI,

I need to pick a Day with lowest sales and present it as value in a text box.

LOAD * Inline [

Day, Store, Product, Sales

1, S1, P1, 100

1, S1, P2, 150

1, S2, P1, 200

1, S2, P2, 500

1, S3, P1, 400

1, S3, P2, 200

2, S1, P1, 500

2, S1, P2, 400

2, S2, P1, 200

2, S2, P2, 100

2, S3, P1, 200

2, S3, P2, 300

];

How can I use this Min function in Set analysis to get Day from Only() ?

Min(Aggr(sum(Sales),Day))

Any ideas would be greatly appreciated.

1 Solution

Accepted Solutions
sunny_talwar

May be this

FirstSortedValue(Day, Aggr(Sum(Sales), Day))

View solution in original post

2 Replies
sunny_talwar

May be this

FirstSortedValue(Day, Aggr(Sum(Sales), Day))

maxsheva
Creator II
Creator II
Author

Excellent! Thank you Sunny