Power Pivot Table Refresh Issue

Wayne K

New Member
Joined
Nov 7, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi and thanks for having this forum to discuss issues with Excel/VBA.

1) I have created a macro to take raw data and make a Table and several Power Pivot Tables to show "Count of Disputes" and use those values on another sheet and it works great.
Disputes(PivotTable14)
LocationAll
Fiscal Year RaisedAll
Current Workflow StageDispute
Column Labels
FALSETRUEGrand Total
Count of Location
10​
1​
11​


2) I then created another Macro to select a "Location" in the Table and delete the rows in the Table that are not from that Location, REFRESH the data and get the values of Disputes from the refreshed Power Pivot Table. However, if there are no "Disputes" in the selected "Location", the refreshed Power Pivot Table doesn't have "DISPUTE" in the "Current Workflow Stage" filter and then shows ALL the values of 703 instead of showing "0" disputes.
Disputes(PivotTable14)
LocationAll
Fiscal Year RaisedAll
Current Workflow StageAll
Column Labels
FALSETRUE
Count of Location
703​
20​

3) How do I show "0" "Disputes" in the Power Pivot Table when there are no "Disputes" in the "Current Workflow Stage" filter which then only shows all the values at 703 instead of "0".

Would it be the way I set up the original Power Pivot Table or is it something else.
Any help would be appreciated.
Thanks.
Wayne
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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