Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

getting maximum value..

AOA

i have dimension of time having field of

(time_id,month,qtr,year)

time_id
month
qtr
year
669dec42012
670jan12013
671feb12013
672mar12013

also have cube of stock......

partno
itemtime_id
qty in stock
12-2-2-2chair67150
12-2-3-2computer67212
12-2-3-2computer6718
12-3-3-3mouse6692

now is a current stock sheet i want to show heading "CURRENT STOCK AVAILABLE AS ON MAR-2013"

where MAR-2013 is a dynamic field which is a month and year of maximum time id

how can i get month and year of maximum time id in a text box to dispaly the required heading.  plz advice

1 Solution

Accepted Solutions
Gysbert_Wassenaar

'CURRENT STOCK AVAILABLE AS ON' & upper(Firstsortedvalue(month, -time_id)) & '-' & Firstsortedvalue(year, -time_id)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

'CURRENT STOCK AVAILABLE AS ON' & upper(Firstsortedvalue(month, -time_id)) & '-' & Firstsortedvalue(year, -time_id)


talk is cheap, supply exceeds demand