Power Pivot DistinctCount by Groupby measure returning incorrect value

tbobolz

Board Regular
Joined
Mar 18, 2010
Messages
148
Hi All,

I have looked at this formula for an hour an can no tfigure out why it is returning a count of 32, when it should be 40. Any ehlp offered would be GREATLY appreciated. Focusing on B21 of the summary tab it displays 32, when I filter and pivot on the Raw data tab, they add up to 40.

I am at a loss!

Thanks for any help you can offer.

Link to workbook
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

You're misinterpreting the measure you've created.
A COUNT will never be a SUM.
By using the DISTINCTCOUNT combined with GROUPBY the results per day are correct however the total mentioned in the pivot isn't a sum but is a distinct count.
So in this case you're doing a distinct count per month, that calculation disregards the days and only looks at the distinct count for the month.
 
Upvote 0
As addition. This can be solved by creating a extra measure, like this:

Distinct Visits2:=sumx(distinct(Table1[Service Date]),[Distinct Visits])
 
Upvote 0
Solution
Ahhhh, yes the light bulb just went on. It's counting ths distinct total for the month in my pivot.

Thank you very much for the lesson!
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,977
Members
452,540
Latest member
haasro02

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