Try the following and let me know if these work for you:
Total Worked: [All worklogs].Filter(Project = thisRow.Project).[Days worked].Sum()
Total Within Timeframe: [All worklogs].Filter(Project = thisRow.Project AND Date > [Start Date] AND Date < [End Date]).[Days worked].Sum()
Thanks a lot for helping me out!
I’ve entered the formula’s you have suggested, but the results are zero for all rows.
I’ve added a screenshot to make it a bit more clear. Any idea what I might be doing wrong?
The only thing that I did different to get it to work was I made the all projects project column a select list and made it =[all work logs].project so it created a dropdown for me. That being said I tried it the way that you did it and I got it to work just writing in the text.
Unfortunately that leaves me quite confused as to why it isn’t working!
If you’re open to sharing the doc I’m happy to take a look at it. I can share this one with you and you can take a look at it as well.
Hi @tom, thanks for helping me out! I didn’t work in my document, but when I copied it in another document to make it available to you, it worked as expected… Smells like a really weird bug to me
I was just working on something with @shishir - trying to figure out how to get lookup() to work. I was way over complicating it and he was kind enough to spend plenty of time with me to figure it out.
That might be something else that you look in to as well. I made a couple of adjustments to that document that I shared with you and provided a couple alternatives to the filter. May work a little more consistently depending on the implementation!
Let me know what you think, but I’m glad to see that it is working for you!
I think the problem is that with the original formula we are comparing a list item with a text ( different types of data ). And converting ToText allows you tom compare Text vs Text.