Hi all,
I have table with 36 columns for body-weight and -fatt measures [Körperfettmessungen]. Below you can see only 13 columns of them.
PZ-Kinn | PZ-Wange | PZ-Brust | PZ-Trizeps | PZ-Schulterblatt | PZ-Rippe | PZ-Hüfte | PZ-Bauch | PZ-Knie | PZ-Waden | PZ-vOberschenkel | PZ-hOberschenkel | PZ-Bizeps |
---|---|---|---|---|---|---|---|---|---|---|---|---|
0,97 | 0,86 | 3,18 | 0,80 | 1,24 | 0,89 | 0,28 | 3,87 | 0,36 | 0,18 | 0,37 | 1,92 | 0,34 |
I want to create in this table a virtual column (called: Priority) where only these 13 columnnames need to be displayed (sorted ) from the highest value to low value.
I have tried an SORT and Select expression as I thought a mutiple column select was possible like in SQL, unfortunately not. In Sheets you can select a column range and use the LARGE() function.
How can I get in my virtual column as text with the 13 columnnames (values are not even that relevant) to display from high to low. Below is an example in Google Sheets:
Thx!
Robert
Solved! Go to Solution.
Yep. Set the virtual column’s App formula expression to:
LIST(
[PZ-Kinn],
[PZ-Wange],
[PZ-Brust],
[PZ-Trizeps],
[PZ-Schulterblatt],
[PZ-Rippe],
[PZ-Hüfte],
[PZ-Bauch],
[PZ-Knie],
[PZ-Waden],
[PZ-vOberschenkel],
[PZ-hOberschenkel],
[PZ-Bizeps]
)
Columns cannot be dynamically sorted.
Hi Steve,
is it possible the get a List in a virtual column from the values in the 13 columns?
Br.
Robert
Yep. Set the virtual column’s App formula expression to:
LIST(
[PZ-Kinn],
[PZ-Wange],
[PZ-Brust],
[PZ-Trizeps],
[PZ-Schulterblatt],
[PZ-Rippe],
[PZ-Hüfte],
[PZ-Bauch],
[PZ-Knie],
[PZ-Waden],
[PZ-vOberschenkel],
[PZ-hOberschenkel],
[PZ-Bizeps]
)
Steve,
one last question,
I applied also the SORT() for this List. Is it possible to do a lookup in this list and get the index / position in this list as return value?
Thx,
Robert
Unfortunately, no.
@Steve, sure you can! (It’s just a complicated bit of magic)
haha same person
Not very nice and clean solution, but it should work when your decimals are less than 100.
SUBSTITUTE(
EXTRACTHASHTAGS(
TEXT(
SORT(
LIST(
RIGHT(“0”&[PZ-Kinn],5)&"#PZ-Kinn",
RIGHT(“0”&[PZ-Wange],5)&"#PZ-Wange",
RIGHT(“0”&[PZ-Brust],5)&"#PZ-Brust"),
TRUE)
)
)
,"#","")
I disagree. Looks very nice to me. Well done!
User | Count |
---|---|
42 | |
33 | |
24 | |
23 | |
14 |