Hello!
I have an app that is used to record and display users timesheets.
Here is some background information that will be helpful:
Bob:
27/10
27/10
26/10
23/10
22/10
21/10
(double up of entries)
(Too many entries / duplication)
I would then like to make every other name green if they were successfully completed:
Bob:
27/10
26/10
23/10
22/10
21/10
Now finally. The issue I seem to have is the you can only format each entry based off of its own data.
I cannot find a way to inspect all entries and colour them dependent on the above criteria.
The closest thing I can seem to come to is colour the entry if the date is within the last 7 days but this should already be the case due to the slice.
Any ideas please let me know
Thank you
Solved! Go to Solution.
Hi @SKETCHwade
Based on your post, it sounds that there is
If so, I believe you may create a VC called say [Entry Status] with an expression something like
IF( COUNT(SELECT(TimeSheet Slice[Key Column], [Employees]=[_THISROW].[Employees]))<>5, โDuplicate entries or Few Entriesโ, โCorrect Entriesโ)
Then you could use this column in setting the necessary format rules when column value is โDuplicate entries or Few Entriesโ
Basically expression is centered around 5 timesheets in last 7 days. So following issues could arise that I believe can be addressed but expressions will become complex.
Also, in general using multirow function like SELECT() in a VC could impact sync times based on data being processed.
Hi @SKETCHwade
Based on your post, it sounds that there is
If so, I believe you may create a VC called say [Entry Status] with an expression something like
IF( COUNT(SELECT(TimeSheet Slice[Key Column], [Employees]=[_THISROW].[Employees]))<>5, โDuplicate entries or Few Entriesโ, โCorrect Entriesโ)
Then you could use this column in setting the necessary format rules when column value is โDuplicate entries or Few Entriesโ
Basically expression is centered around 5 timesheets in last 7 days. So following issues could arise that I believe can be addressed but expressions will become complex.
Also, in general using multirow function like SELECT() in a VC could impact sync times based on data being processed.
Thank you very much for your thoughtful response! @Suvrutt_Gurjar
You are correct in that public holidays would affect this. I am not too worried about this as its not super common and the employees should figure that outโฆ hopefully haha.
When filling out the timesheet form there is a section for leave so that should still equate to 5 days.
As you say I am worried about the affect on sync time but I will try it out and see how it goes.
If it does have a significant impact would reducing row count in the spreadsheet make a noticeable difference? or is the issue more so that it has to calculate it at all?
Its interesting that appsheet does that calculation by itself:
I wonder if its possible to access this information within the format rule so I no longer need a VC to run?
Hi @SKETCHwade
I believe that group by count or sum information is not accessible for further use in the app logic expressions.
On this topic, yes, I believe testing will reveal more. But to me it sounds that since you anyway already have the weekly slice applied to the timesheet table, the SELECT() statement constructed for the format rule may not further degrade the sync time much.
This is so because the SELECT() statement for the format rule is applied on the slice rather than the table. So the SELECT() will process weekly data rather than the entire table for all the employees.
Ooh I was unaware that the expression is only applied to the slice! That is excellent!
Thank you @Suvrutt_Gurjar !
User | Count |
---|---|
38 | |
35 | |
27 | |
23 | |
18 |