Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Combined IF-statements from two different tables

Hi everyone

I am trying to create a calculated column with an IF-statement from two different tables.

 

In table 1 I have all the cases.

 

In table 2 I have all the meetings.

 

Each case can have several meetings and the two tables are linked together by caseid.


Table 1:

CaseidCase start dateCase deadline date
1Date 1Date 1
2Date 2Date 2

 

Table 2:

Case idMeeting typeMeeting date
1PhoneDate 1
1PersonalDate 2

 

I would like to create a calculated column in table 1 which shows the number of meetings for the specific case between the case start date and the case deadline date.

There are several other conditions in the two tables that I want to combine, but I would like to start with this simple one in order to understand the logic behind the correct DAX.

I have tried with a simple IF-statement followed by COUNTROWS, but it doesn't seem to work with conditions from two different tables.

Can anyone help me?