Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
HI,
i have 3 columns..
By default i need a bar chart ,if u select a key there is some max version for that key..i need the value of that version for all keys.
i have attached a sample for u..plz refer to that !
add Flag to rows:
data1:
NoConcatenate
load
key,
version,
value,
oder,
MaxVersion,
If(version = MaxVersion,1,0) as MaxVersionValues
Resident data
;
so now you dont have to drop the non-related rows. table looks below:
You are using Sum(value), instead try max(value).
Hi
Try like this
=FirstSortedValue(value , - version)
Hope it helps
hi,
but i have an expression like count(value)...where max cant be applied
thank you. but here in my sample it is value which picks max value..but i have order column..i need the count of order for each key with max version.
my expression is count(ordr)
I think MayilVahanan had given correct solution.
yes its right, but it doesnt work in count...suppose my expression is count(ordr)...which need to pick the max version. then what wil be the expression
something like this may be:
FirstSortedValue(aggr(count(value),version),-version)
no bro its not working
max({<version = {'=Max(version)'}>}value)