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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

I need Help to filter 3 tables in COUNTROWS

I need help to know how to filter 3 tables in the CALCULATE function to display COUNTROWS of 3 columns with different information.

1 Status Amostra = CALCULATE(COUNTROWS('PO Manual','PO Manual - Andamento','SHeet' - I'),FILTERS('PO Manual'[STATUS FATURA]),FILTERS('PO Manual - Andamento'[STATUS FATURA]))
deniselias_0-1620230952690.png

 

Tables and columns:

1: 2: 3:

deniselias_1-1620231070664.pngdeniselias_2-1620231107817.pngdeniselias_3-1620231182696.png

 

 

 

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see attachment), please check whether that is what you want.

Table = 
UNION (
    SUMMARIZE (
        'PO Manual',
        'PO Manual'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'PO Manual'[STATUS FATURA] ) )
    ),
    SUMMARIZE (
        'PO Manual - Andamento',
        'PO Manual - Andamento'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'PO Manual - Andamento'[STATUS FATURA] ) )
    ),
    SUMMARIZE (
        'SHeet',
        'SHeet'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'SHeet'[STATUS FATURA] ) )
    )
)

yingyinr_1-1620376861850.png

If the above one is not what you want, please provide some sample data in 3 tables and your expected result with specific examples. Please also provide the relationship setting among these tables if there is any relationship. Thank you.

Best Regards

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see attachment), please check whether that is what you want.

Table = 
UNION (
    SUMMARIZE (
        'PO Manual',
        'PO Manual'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'PO Manual'[STATUS FATURA] ) )
    ),
    SUMMARIZE (
        'PO Manual - Andamento',
        'PO Manual - Andamento'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'PO Manual - Andamento'[STATUS FATURA] ) )
    ),
    SUMMARIZE (
        'SHeet',
        'SHeet'[STATUS FATURA],
        "Status Amostra", CALCULATE ( COUNT ( 'SHeet'[STATUS FATURA] ) )
    )
)

yingyinr_1-1620376861850.png

If the above one is not what you want, please provide some sample data in 3 tables and your expected result with specific examples. Please also provide the relationship setting among these tables if there is any relationship. Thank you.

Best Regards

Anonymous
Not applicable

Thanks Yingyinr,

 

I love your solution!

I also managed to apply the expression:

deniselias_0-1620673445372.png

 

But your solution made me create another table and I love it!

 

Thaks, bye!

 

Anonymous
Not applicable

Thanks for the answer @selimovd 

 

I want to make a formula where I can bring information from 3 tables and make a different count for each situation.

 

Look at the shapes I tried:

deniselias_0-1620233101698.png

 

And that was the best way. But data from 2 tables is still missing. I want to include it in COUNTA:

deniselias_1-1620233163963.png

 

I hope you understand.

 

Thanks!

Hey @Anonymous ,

 

how is the relationship between these 3 tables?

Where is the final table coming from? When you want a count from 3 other tables, how should that exactly work? Does it depend on a specific column, is the count from one single table?

 

Please explain a little more, we don't know your data, so it's hard to help you when you don't give much information.

 

Best regards

Denis

selimovd
Super User
Super User

Hey @Anonymous ,

 

what exactly do you want to do?

The formula doesn't make any sense and I didn't really understand the descriptiont.

 

Thank you and best regards

Denis

 

Anonymous
Not applicable

I want to make a formula where I can bring information from 3 tables and make a different count for each situation.

 

Look at the shapes I tried:

deniselias_0-1620236906182.png

 

 

And that was the best way. But data from 2 tables is still missing. I want to include it in COUNTA:

deniselias_1-1620236905377.png

 

 

I hope you understand.

 

Thanks!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Users online (9,628)