Something going wrong in power pivot

sharshra

Active Member
Joined
Mar 20, 2013
Messages
404
Office Version
  1. 365
I have to get values from 2 tables. I´m using power pivot to manipulate data in these 2 tables. But I´m making some mistake & not getting the right values. Can the experts point out what is wrong & advise how to fix?

Consider the following tables.

Table - detRq
excel problems.xlsx
BCDE
2#ModDescTC
31Cdfd2
42Ldvsvno
53Aererno
64Lhgh1
75Luiyui9
86Lczcno
97Ccvnv21
108C4rf36
119C34refno
1210Lerer3
Sheet2


Table - detTC
excel problems.xlsx
GHI
2#ModTCD
31Cfd
42Cre
53Ljk
64Lbnm
75Lhkhhff
86L2vcv
97C7,n,hj
108
119
1210
1311
1412
1513
1614
1715
Sheet2


I´m using power pivot to combine these 2 tables. Also, created a measure `no TC´ to count `no´ in table detRq.

After this, I have created a pivot. In this pivot, I have the following -
Table detRq - Mod, count of Mod & no TC
Table detTC - Mod

I want to get the number of Mod & count of `no TC´ for each Mod. This is working correctly. Next, I want to count the Mod from detTC. This is not working correctly. As seen in the table below, I´m getting the total count against all Mod in column Mod-TCD. Expected values are shown in the next column in green cells. How can I get the correct values in the final pivot table under the column Mod-TCD?

Final pivot -
excel problems.xlsx
KLMNO
3ModMod countno TCMod-TCD
4A1170
5C4173
6L5274
7Total1047
Sheet2
Cell Formulas
RangeFormula
O4:O6O4=COUNTIF(detTC[Mod],K4)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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