Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Countifs multtiple tables

Hi,

 

I have 2 tables an in total 5 columns for the countifs function

Table 1                 Table 2 

Name                   Name

Date                     Date

Handled Mail       

 

I want to count the number of handled mails if there s a match between the name and date columns of both Tables

 

Kind regards,

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could create a relationship of the two tables and create a calculated column with IF FUNCTION.

 

Column =
IF (
    AND (
        'Table1'[Date] = RELATED ( 'Table2'[Date] ),
        'Table1'[Name] = RELATED ( 'Table2'[Name] )
    ),
    COUNT ( Table1[Handled Mail] ),
    BLANK ()
)

If you need additional help, please share your data sample and your desired output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

I have 2 tables and 5 columns for the COUNTIFS

 

Table Mail          Table Telephone

Name                 Name

Date                   Date

Handled Mail     

 

I want a column in Table Telephone with the handled mail if there is a match between the columns Name and Date of both tables.

 

kinds regards

 

 

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could create a relationship of the two tables and create a calculated column with IF FUNCTION.

 

Column =
IF (
    AND (
        'Table1'[Date] = RELATED ( 'Table2'[Date] ),
        'Table1'[Name] = RELATED ( 'Table2'[Name] )
    ),
    COUNT ( Table1[Handled Mail] ),
    BLANK ()
)

If you need additional help, please share your data sample and your desired output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.