Hi . my question is this. I want to be about to filter a slice to only show a list or job that is asinged to that user workin on that job or many users
I have this setup
1 DB that has the list of jobs and also the useremail for example
job 234, user aaa@gmai.com
job 234.user abc@gmail.com
job 222, user 123@gmail.com
then when in a job there are many items that are recored all linkin to that job
job 234, needs painting in lounge
job 234, needs work etc
job 222, needs rewire
how do i filter the jobs so that everone working on them can see the full list of recored's
it would need to be somthing like
if useremail is the same as user in DB1 then
show all the job numbers like to that useremail.
many thanks hope someone can help.
This is what i have tried. but it keeps hiding everting
IF ([Job_Number]=JobDetails[Job_Number] AND JobDetails[User]=USEREMAIL(),TRUE,FALSE)
Hello,
Your expression has many problems:
Also, it seems that miss the way how dereferencing is constructed, so I'd recommend that you read this guide that should much benefit you.
https://help.appsheet.com/en/articles/1090811-dereference-expressions
and:
https://help.appsheet.com/en/articles/2347624-and
In any case, if you'd like a ready-made solution, please show us your tables' columns and indicate which one you are filtering through the slice. Thank you.
It's not clear how to help you best. We need to see the structure of the Jobs and Job Details tables AND we need to know how you are assigning the workers to a Job.
Sorry I'm unable to uploaded a image.
But basically it looks like this
So anyone that has that job assigned to them can see and access all those jobs but only those jobs.
Job | details | before image |
454 | fridge |
User | jobnumber | |
Ste@ | 454 | |
Fred@ | 454 | |
Ste@ | 667 |
IN([Job], SELECT(Users[Job], (USEREMAIL() = [Email])))
User | Count |
---|---|
41 | |
36 | |
28 | |
23 | |
16 |