How to filter values of one table IF in other table is verified a particular condition

HELLO TO EVERYONE!

I have two table called โ€œCORSI (Courses)โ€ and โ€œDIPENDENTI (employees)โ€ like in photo and Iโ€™ve set this reference: REF_ROWS(โ€œCORSIโ€, โ€œDIPENDENTEโ€).

Iโ€™d like to view in the app the data of table โ€œCORSIโ€ but only for Employees who have in the column โ€œSTATOโ€ in table โ€œDIPENDENTIโ€ the value โ€œAttivoโ€. So, the main question is: how can I view the values of table โ€œCORSIโ€ only IF the column STATO in table โ€œDIPENDENTIโ€ is โ€œAttivoโ€?

TKS in advance!!

Solved Solved
0 9 574
1 ACCEPTED SOLUTION

Yes, exactly. Now use that in your slice.

Only if you needed to keep the value directly in the table for some reason, which you donโ€™t need that here.

View solution in original post

9 REPLIES 9

Yes, I saw this article but for me the difficult is to use a filter condition with an other table. I know how use slice in order to show only a section of data but in this case, the condition is in another tab. Surly, the solution is simple bty now, I cantโ€™ find it. Could you open my eyes? tks again

I know the reference expression. Iโ€™ll try to explain better my request in order to be clearer.
I have two table (COURSE and EMPLOYEES). These table are referenced with key โ€œIDEMPLOYEEโ€.
In the app Iโ€™d like to show only the values of table COURSE which STATUS is โ€œAttivoโ€ in the other table EMPLOYEES.
Probably, I have to use a slice but I have some difficult in writing the query.
Could help me in this?

Using the linked โ€œdereference expressionsโ€ article, how would you get the STATUS value from the context of a record of the COURSE Table?

Maybe, I have to add a virtual columns in table COURSE where set this formula [EMPLOYEE].[STATUS]? If is wrong, could say me the solution? tks Marc

Yes, exactly. Now use that in your slice.

Only if you needed to keep the value directly in the table for some reason, which you donโ€™t need that here.

Perfect, so I put in my slice and it work But I have a last problem Iโ€™have in my slice an other condition AND(ISNOTBLANK([SCADENZA]), [RINNOVO]=" "). How can i match this condition with [DIPENDENTE].[STATO]=โ€œAttivoโ€?
TKS and then i will not disturb you anymore (I hope )


23.19.59.pngโ€ฆ]()

No problem, I found the solution. TKS MARC_DILLON

Top Labels in this Space