Changing a pivot's displayed values (from one set to another) using a slicer

Alice Morland

New Member
Joined
Apr 26, 2018
Messages
37
Hello forum!

I have a question for you knowlegeable people; how can I change what's in a pivot's values without actually going to the PivotTable Fields area. Ideally, I'll be using a slicer.

This is the raw data:

NameDocument No.Values
John11$35
Mary154$558
Adrian21$120
John14$100
John344$48

<colgroup><col><col><col></colgroup><tbody>
</tbody>

The first pivot is this:

Row LabelsSum Values
Adrian120
John183
Mary558
Grand Total861

<colgroup><col><col></colgroup><tbody>
</tbody>


I'd like to replace the Values column by the Count of Document Numbers:

Row LabelsCount of Doc Number
Adrian1
John3
Mary1
Grand Total5

<colgroup><col><col></colgroup><tbody>
</tbody>


In conclusion, is there any way to do that without going into the PivotTable Fields area? I'm asking because the report users would rather not get technical.

Big thanks!!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Create BOTH. Then Record a macro to Hide each column or un-hide all columns.
Use a button control to invoke each desired macro.

That should be three separate macros based on your descriptions.

You can use the same method to actually modify the PivotTable, but that will be more complicated code.
 
Upvote 0
Hi Spiller, thank you. I'll give it a try with macros. The thing is, I did see some complicated formula somewhere using DAX. :(
 
Upvote 0
DAX !
I still wishing that would click in my head, but I think you can do it with DAX (PowerPivot or PowerBI Desktop)
Something along the parameters line.
Check out the P3 blog (https://powerpivotpro.com/) and the PowerBI channel here.
I just don't enough experience/knowledge to give you any more advice than that.
 
Upvote 0
Thanks for taking the time though :) I'll look for a solution and I'll post it here - who knows, it may be useful to others too.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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