Power pivot - new calculated column

bongielondy

New Member
Joined
Mar 4, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have 2 tables in Power Pivot, Table 1 and Table 2. Table 1 has the Models. Table 2 has the Models and a new column I have created. This new column should count the number of Models in Table 1. The 2 tables are not related.

Table 1

Model Site


sierra cs 29 main street

727 optimum honeysuckle complex

sierra cs bayes store

727 optimum north shopping centre

727 optimum sheel garage



Table 2

Model Number


727 optimum 3

sierra cs 2

xylene 0


I have used the COUNTROWS and the CALCULATE(COUNTAX) functions but still get an error. What will be the correct formula for the column Number?
 

Attachments

  • tables.png
    tables.png
    19.6 KB · Views: 5

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
=CALCULATE(COUNTA(Table1[Model]), FILTER(Table1,Table1[Model]=Tablel2[Model]))
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,787
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top