Possible in pivot?

sharshra

Active Member
Joined
Mar 20, 2013
Messages
343
Office Version
  1. 365
I have the following table. On this, I have to count the mod & number of `no´ against each mod. I´m able to get the desired output using the combination of pivot table & formula. However, I´m curious to know if same result can be achieved using pivot only without using formula. Can the experts advise please?

Base table -
search problem.xlsx
BCDE
2#ModDescTC
31Cdfd2
42Ldvsvno
53Aererno
64Lhgh1
75Luiyui9
86Lczcno
97Ccvnv21
108C4rf36
119C34refno
1210Lerer3
Sheet2


Pivot + formula column
I´m using a combination of pivot table & formula to get the count of mod, count of TC & count of TC having `no´.
search problem.xlsx
HIJK
1TC(All)
2
3ModCount of ModCount of TCno
4A111
5C441
6L552
7Grand Total10104
Sheet2
Cell Formulas
RangeFormula
K4:K6K4=LET( mod,$C$3:$C$12, tc,$E$3:$E$12, ROWS(FILTER(mod,(mod=H4)*(tc="no"))))
K7K7=SUM(K4:K6)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
With Power Pivot, write a measure
Excel Formula:
=countx(
Filter(Table1,Table1[TC]="no"),
Table1[TC]
)
Call this Count of TC and then put it in the values in the Pivot Table.
 

Attachments

  • Screenshot 2024-07-12 141836.png
    Screenshot 2024-07-12 141836.png
    52.4 KB · Views: 10
Upvote 0
Solution

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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