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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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