Hello,
I am trying to produce a report based on entries made by different users during a shift. There are 3 shifts so I want to produce a report at the end of each shift. I have a security filter set so each user can only see their entries in the app, but the report should include all users.
The way I tried to do this was create slices for each shift, and then have 3 reports which set the table to the slice table, and then in the report I use the Select. Then I clicked the โBypass Security Filtersโ option as I donโt want the slices filtering on the username. I tested each slice individually by clicking โView Dataโ and they work, although they filter based on username.
This reporting doesnโt seem to work. Each report includes all data, and is not filtered based on the slice filter condition. Am I misunderstanding how slices/reports/bypass security filters work? By clicking โBypass Security Filtersโ am I also bypassing the slice filter condition?
The other way way I could do this is to remove the email filter from the security filter and move it to a slice and then switch off โBypass Security Filtersโ but that would degrade performance as the table grows. Iโm hoping there is a simpler way?
Thanks
Steve
Solved! Go to Solution.
The problem was in my template. I was using the select on the main table and not on the actual slice name. Once I used the slice name it worked.
One workaroundโฆ use the ByPass option but write the filter with your SELECT(โฆ) formula directly on a template.
Hi Aleksi, while this would work, the problem with this is then I need 3 separate template files, one for each shift. Also Iโm not sure the select statement would be very easy to read.
I thought my usecase might be quite common and I was just missing something to get the slice filter condition working.
The problem was in my template. I was using the select on the main table and not on the actual slice name. Once I used the slice name it worked.
User | Count |
---|---|
38 | |
27 | |
23 | |
23 | |
13 |