PowerPivot Countifs

johnbird1988

Board Regular
Joined
Oct 6, 2009
Messages
199
Hello,

I am new to power pivots and wanted some help with a formula.

I want to convert the formula below into a calculated file in a power pivot table but cannot get it to work.

Code:
=COUNTIFS($B$10:$B$20,B10,$C$10:$C$20,"Y")

The column name for B = [Department] and the column name for C is [Active]

Thank you for your help

John
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
This is totally weird I get smacked around because I don't know anything about Excel. Weird but true.

I assume COUNTIFS is ... counting the number of rows that match some criteria. Frequently, you just don't need that in power pivot. You simply say "=COUNTROWS(Table)" and it magically works... you put Department on Rows and it will show you the # of rows for each deparatment. You can filter out the Active=N on the pivot table.

If you really want to write a ActiveCount it would be something like : =CALCULATE(COUNTROWS(MyTable), MyTable[Active]="Y")
 
Upvote 0

Forum statistics

Threads
1,224,078
Messages
6,176,244
Members
452,716
Latest member
Elo

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