hello everyone,
I am using dataverse tables, In gallery I want labels to appear on below conditions. I have used below expressions for "visible ". when I used below expresion all labels with this expression disappeared. which is wrong action. I tried switch and if condition.
Can any one please guide me?
/*Switch(
LookUp(
approve,
fruits_1 = ThisItem.fruits,
fruits_1
),
"apple",
true,
"mango",
true,
"orange",
true,
"pinapple",
false,
"cherry",
false,
"others",
false
)*/
If(LookUp(approve,fruits_1=ThisItem.fruits,fruits_1)="apple",true,false)
when I use switch or if . It do not show any error but , whatever the fruits value is, it is taking false as default.(even at conditions of true also)
The Switch statement I provided will work @Krishna09
I just now tried thisitem.fruits , with if condition it worked. yesterday it did not work. thanks for @NandiniBhagya20 and @phipps0218 for immediate response. I will try with switch also now.
fruits_1 is a column name, which is in approve table
fruits is another column name, which is in tracker table.
tracker table is a data source for gallery.
@Krishna09 your formula is wrong. Try this:
Switch(
ThisItem.fruits,
"apple",
true,
"mango",
true,
"orange",
true,
"pinapple",
false,
"cherry",
false,
"others",
false
)
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.
LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218
@Krishna09 your formula is wrong. Try this:
Switch(
ThisItem.fruits,
"apple",
true,
"mango",
true,
"orange",
true,
"pinapple",
false,
"cherry",
false,
"others",
false
)
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.
LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218
Hi,
Why are you not using ThisItem.fruits directly.
Fruits column is of which type ?
Switch(
ThisItem.fruits,
"apple",
true,
"mango",
true,
"orange",
true,
"pinapple",
false,
"cherry",
false,
"others",
false
)
WarrenBelz
198
Most Valuable Professional
MS.Ragavendar
108
stampcoin
80