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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
johnf
Helper I
Helper I

COUNTROWS of multiple tables in one measure

Hi,

 

I have four tables I require a count of all the rows as one measure.

 

As I am required to use a Direct Query connection I can't create a helper table to join on.

 

Anyway I can do this effectively?

 

Thanks,

John.

1 ACCEPTED SOLUTION
donsvensen
Skilled Sharer
Skilled Sharer

Hi

 

You can create a measure like this

 

CR = COUNTROWS(Table1)+COUNTROWS(Table2)+COUNTROWS(Table3)+COUNTROWS(Table4)

 

br

Erik

View solution in original post

4 REPLIES 4
donsvensen
Skilled Sharer
Skilled Sharer

Hi

 

You can create a measure like this

 

CR = COUNTROWS(Table1)+COUNTROWS(Table2)+COUNTROWS(Table3)+COUNTROWS(Table4)

 

br

Erik

I need to count about 6 more "filters", but I can't get it to work. the only way I get #'s is using just one filter.  

 

Shows = CALCULATE(COUNTROWS('2018 Opportunity') , FILTER('2018 Opportunity','2018 Opportunity'[Appointment Result] = "Loss - No Sale"))

 

 

I want to add "Medical Referral" and about 5 more filters.  Please help.

 

Thanks!

I need to count about 6 more "filters", but I can't get it to work. the only way I get #'s is using just one filter.  

 

Shows = CALCULATE(COUNTROWS('2018 Opportunity') , FILTER('2018 Opportunity','2018 Opportunity'[Appointment Result] = "Loss - No Sale"))

 

 

I want to add "Medical Referral" and about 5 more filters.  Please help.

 

Thanks!

Thanks for that.

 

Sometimes I get lost in overthinking the problem 🙂

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors