Hi everyone
I would like to create a deck with a virtual column.
the image of the view must be loaded from another table and insert an image based on the value of a column.
example :
if column โopโ = a โtyโ insert image ty.pnj
thank you
try a formula like this:
select(Image_Table[Key], and([_thisrow].[op] = โtyโ, [Image] = โty.pnjโ))
Where
Okay, thanks, Iโll try.
But if I have to have more variable how do I do?
Example if in the column instead of โtyโ I have the value โTzโ
To include multiple options for the column value, use IN() instead of the = opperator
select(Image_Table[Key], and(
in([_thisrow].[op], LIST(โtyโ, "tz", etc.)),
[Image] = โty.pnjโ
))
Iโm sorry, I think I made myself clear.
I on each row of the Google sheet will have a different โopโ column value.
How do I associate the correct image to the value type?
The images are about 30
Thank you.
Do you have the values stored in the sheet with the images?
Like: Youโve got Column 1 (the image), Column 2 (Op column), Column 3 (etc.) maybe more columns??
Also, in the table where youโre wanting to import these images, is there a column that will hold the value for that view? LIke TY for one, another is tx, etc.?
exactly!
Then this makes things SOOO much easier
select(Image_Table[Key], [op] = [_thisrow].[Column_With_Value])
I am hopeless !!!
Wrap the SELECT() expression in ANY().
but the table where I keep the images must refer to the table where I insert the virtual column?
The error tells you what the problem is: the vettore column contains a Ref value but your Virtual Column 1 expects an Image value.
The Image refers to the table called vector where I keep the images.
the virtual column was created in the โcenteringโ table which has a vector column (image) and an OP column (TEXT)
in the OP column if I find an example an โACโ value I want it to insert the image of the vector table
sorry and thanks for the help
try this:
select(vettore[image], [vettore] = [_thisrow].[op])
โฆwrapped in any()โฆ
but if you want the deck view, it needs to be a listโฆ and the key column now that I look at the formula.
Whichever key in the vector table is marked as the KEY in appsheet should be in the COLUMN_HERE space in the formula:
select(vettore[COLUMN_HERE], [vettore] = [_thisrow].[op])
Resolved !!!
Thank you
any(select(vettore[image], [vettore] = [_thisrow].[op]))
Woohoo!
then the vector table before was in the same google sheet.
I wanted to create another database folder I imported the new table and now it doesnโt work anymore !!
if I add the table in the google sheet of appsheet everything works
User | Count |
---|---|
37 | |
30 | |
29 | |
20 | |
18 |