Power pivot- counting text fields based on a condition

masterelaichi

New Member
Joined
Sep 29, 2014
Messages
49
Hi,

I am trying to find a way to count the number of occurrences of a specific string in a column in Power Pivot

I have a table with a column "Call type" with values “Incidents” and “Requests”. The table is around 1000 rows long with each call being either a Request or an Incident. Is there a way to count the number of occurrences of Incidents and Request?


Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Depending on how you want to use it, there are a few options.

A measure with just:
=COUNTROWS(MyTable)

Then drop call type on rows of your pivot table, and that measure on values... and there ya go?
 
Upvote 0
Hi,
Thanks for your response, but when I try doing this it returns the total number of rows. I should have framed my query more clearly. I am looking to get just the number of Incidents or the just the number of Requests
I am very new to powerpivot and hence unfamiliar with the formulas

Thanks
 
Upvote 0
I tried COUNTROWS(FILTER(Incident_Request,[Call Type]="Request")) and seems to do the trick. This was completely by trial and error. I still need to figure out how to use Calculate, Related and Filter functions K
 
Upvote 0
Do you have multiple tables? Otherwise Countrows(Incident_Request) should "just work" when you put Call Type on rows...
 
Upvote 0

Forum statistics

Threads
1,224,061
Messages
6,176,150
Members
452,707
Latest member
laplajewelry

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