Select the rows with the same ID's in the current week

Hi,
I have a table JOBS. It has kind of jobs.
Employees use this table to create rows in another table PROGRAM

The table JOB:
ID
POSITION OF EMPLOYEE (like gardener, officer etc.)
FREQUENCY (it has the enum list DAILY, WEEKLY, TWICE A WEEK, MONTHLY)

The table PROGRAM:
ID
DATE
JOB (connecting with the ID's of table JOB)
POSITION OF EMPLOYEE (copy from the table JOB)
FREQUENCY (copy from the table JOB)
TIME
PLACE

I want to select only the rows from the table JOB that have two rows (at least) with the frequency twice a week, in the current week in the table PROGRAM
I have a formula:
SELECT(PROGRAM[JOB], AND([JOB]=[JOB].[ID], [FREQUENCY]="TWICE A WEEK", WEEKNUM(TODAY())=WEEKNUM([DATE])))
But with this formula I have all the rows with frequency "twice a week" in current week but I can't see the rows that are double in the same week
How I could filter the rows having the jobs that thew have done twice a week in the current week?
Thank you
Sakis

Solved Solved
0 8 305
1 ACCEPTED SOLUTION

Thank you , please try  the below expression. I think a few parentheses were incorrect in your expression.

Hope you re trying it as a row filter for example in a slice filter

ISNOTBLANK(
FILTER(
"ฮ ฮกฮŸฮ“ฮกฮ‘ฮœฮœฮ‘",
AND([_THISROW].[ฮ•ฮกฮ“ฮ‘ฮฃฮ™ฮ‘]=[ฮ•ฮกฮ“ฮ‘ฮฃฮ™ฮ‘], [ฮฃฮฅฮงฮฮŸฮคฮ—ฮคฮ‘]="5.ฮ”ฮ™ฮ•ฮ’ฮ”ฮŸฮœฮ‘ฮ”ฮ™ฮ‘ฮ™ฮ‘", WEEKNUM(TODAY())=WEEKNUM([ฮ—ฮœฮ•ฮกฮŸฮœฮ—ฮฮ™ฮ‘]) )
)
- LIST([_THISROW])
)

View solution in original post

8 REPLIES 8
Top Labels in this Space