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
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

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

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
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.