Hey guys first post, good morning (well here anyway) to you all.
I have looked for a solution to this and am hitting a bit of a blank, I am sure it must be answered somewhere
Excel 2016. I want to add distinct count to a pivot table. in its simplest form, its sales rep, order counts, and item counts
So
Desired Table
Rep Orders Items
ABD 1 2
EFG 3 6
HIJ 2 2
Data
Rep OrderNo Item No
ABD 1 10
ABD 1 11
EFG 2 12
EFG 2 13
EFG 2 14
EFG 3 15
EFG 4 16
EFG 4 17
HIJ 5 18
HIJ 6 19
If when I create the pivot I select the add to data model tick, then I get the distinct count option in the field value settings , which gives me what I want (ie unique count of orders) as I am sure many of you are aware
Though when doing this I lose the option to add calculated field, it become greyed out
If I dont add it to the data model I get the calculated field option, but no distinct count as an option for the field value. I need both
So I see this is something to do with the connection/source data/OLAP blah.
Right now its a view from sql server (which is currently just copied and pasted in to the "data" worksheet).
Can I have both distinct count and calculated fields? Is there a workaround?
I need to add some calculated fields for a percentage later in the table. I do have access and rights to update the sql view, though Excel is more happily supported in my environment than tsql. Can anyone advise - also being new here I hope this meets any posting requirements and I have explained ok. Off to work now to tackle this so a heads up would be fantastic This one simple thing is holding back the delivery, errm today I can upload/send an example it be needed (if the forum supports this)
Thanks a million
I have looked for a solution to this and am hitting a bit of a blank, I am sure it must be answered somewhere
Excel 2016. I want to add distinct count to a pivot table. in its simplest form, its sales rep, order counts, and item counts
So
Desired Table
Rep Orders Items
ABD 1 2
EFG 3 6
HIJ 2 2
Data
Rep OrderNo Item No
ABD 1 10
ABD 1 11
EFG 2 12
EFG 2 13
EFG 2 14
EFG 3 15
EFG 4 16
EFG 4 17
HIJ 5 18
HIJ 6 19
If when I create the pivot I select the add to data model tick, then I get the distinct count option in the field value settings , which gives me what I want (ie unique count of orders) as I am sure many of you are aware
Though when doing this I lose the option to add calculated field, it become greyed out
If I dont add it to the data model I get the calculated field option, but no distinct count as an option for the field value. I need both
So I see this is something to do with the connection/source data/OLAP blah.
Right now its a view from sql server (which is currently just copied and pasted in to the "data" worksheet).
Can I have both distinct count and calculated fields? Is there a workaround?
I need to add some calculated fields for a percentage later in the table. I do have access and rights to update the sql view, though Excel is more happily supported in my environment than tsql. Can anyone advise - also being new here I hope this meets any posting requirements and I have explained ok. Off to work now to tackle this so a heads up would be fantastic This one simple thing is holding back the delivery, errm today I can upload/send an example it be needed (if the forum supports this)
Thanks a million