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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

first element in a filed

hi,

what's the name of the function that returns the first element in a filed? for example, in the data i have:

sku #sku name
1a
1a
2b
2b

and in the straight table i want to get:

sku # (dimension)sku name (expression)
1a
2b

i know that i can achieve this by simply add "sku name" as a second dimension, but i want "sku name" to be a calculated expression.

any ideas?

thanks

5 Replies
jerem1234
Specialist II
Specialist II

Try just skuName as expression or maybe only(skuName).

Do your sku #'s have multiple sku names? or are they all a for 1, b for 2, etc?

Other function that may help is firstsortedvalue() if those dont work.

Hope this helps!

Not applicable
Author

they are all a for 1, b for 2, etc... i tried your 3 alternative but it doesn't seems to work...

thanks

jerem1234
Specialist II
Specialist II

Maybe try maxString(skuName).

Else, could you post a sample qvw that demonstrates your problem?

Not applicable
Author

thanks you jerem.

Josh_Good
Employee
Employee

Using just Sku Name works for me in this example.