Slices Not Working

rwksys
New Member

Iโ€™ve created a slice with a formula that I am confident works because I when I click โ€œview dataโ€ I see the rows I want displayed. However, when I try to select the slice as the source in UX (for a deck, table, map, etc.) it returns no values. I donโ€™t believe the UX view to be an issue because if I change the source to my table instead of a slice, it populates as expected. Iโ€™ve played with it for a long time, but suspect there is some simple thing I am overlooking. Does this sound familiar to anyone? Suggestions? TIA!

Solved Solved
0 8 414
1 ACCEPTED SOLUTION

When using FIND() expression, the resut is number, not TRUE/FALSE. You would need to use something likeโ€ฆ FIND(โ€œCharlotteโ€, [Categories])>0

View solution in original post

8 REPLIES 8

Indeed, there are a few formulas that donโ€™t evaluate the same way depending on where itโ€™s run. The expression builder and the app evaluate formulas using different mechanisms, so sometimes things donโ€™t work out as you planned.

What is the formula for your slice, usually itโ€™s just a matter of switching around some logic.

Thank you, that is encouraging to hear. The formula Iโ€™m using is:

True = FIND(โ€œCharlotteโ€, [Categories])

@rwksys May I ask what is your formula?

True = FIND(โ€œCharlotteโ€, [Categories])

rwksys
New Member

Thanks, the formula that seems to work in preview but not in UX is intended to include only items where the keyword โ€œCharlotteโ€ is included in the category field (which is a text filed that may contain more than just the word Charlotte so I want any that includes Charlotte in the value):

True = FIND(โ€œCharlotteโ€, [Categories])

When using FIND() expression, the resut is number, not TRUE/FALSE. You would need to use something likeโ€ฆ FIND(โ€œCharlotteโ€, [Categories])>0

That did it! Thank you so much!

Youโ€™re welcome

Top Labels in this Space