Hello there! I need to ask if is there any ...

Hello there!

I need to ask if is there any option or expression that it can detected what slice is selected and set a value in a column.

For exemple, I have a sheet called โ€œMovimentโ€, and there is a column called โ€œTypeโ€ where I can set the value โ€œGet inโ€ or โ€œGet outโ€. So I made to slices(one for โ€˜get inโ€™, and another for โ€˜get outโ€™) and like this I could make two differents table views for each one. But when I select the plus symbol(+) on the bottom rigth conner, the form always open with both options to choose.

What I want is: when the view is a slice of โ€œget outโ€, the form auto select โ€œGet outโ€ in the โ€œTypeโ€ column, and the same for the slice โ€œget inโ€.

Is there any way?

0 7 377
7 REPLIES 7

You need to create a form view for that slice and it will open it correctly.

@Aleksi_Alkio But without making a form view, just using the plus symbol in that slice table view, is it possible?

At this moment unfortunately itโ€™s not possible.

Ok. Thank you!

@Aleksi_Alkio Iโ€™ve tried to use this expression on the โ€œTypeโ€>โ€œInitial Valueโ€:

โ€œIF(#view=get_in,โ€œGet inโ€,IF(#view=get_out,โ€œGet Outโ€, โ€œDefaultโ€))โ€

But it was always setting โ€œDefaultโ€ when I tried to save it. So I realized that when I clicked on the plus symbol, I just change the slice view for a form view unnamed, and because of it the expression didnโ€™t work.

So, is there a expression to catch the last view name?

Perhaps, it would help me end this problem.

We canโ€™t read view names. The reason why your formula always give โ€œDefaultโ€ as a result is thisโ€ฆ #view=get_in is always FALSE and same with the #view=get_out. Then the only option that you have, is the โ€œDefaultโ€.

Ok. Thank you again!

Top Labels in this Space