PowerPivot Distinctcount

goss

Active Member
Joined
Feb 2, 2004
Messages
372
Hi all,

Using Excel 2010.

How can I get a Distinctcount of a Measure or how could I rewrite one or more of the Measures below?

With these Measures, I'm close, but the counts are not distinct.

The DistinctCount function appears to only accept a Column and not a Measure.

Current Measures:
Count of Processors:=count([ProcessorKey])

Count of Processors Value Correct:=CALCULATE([Count of Processors],FILTER(dimErrorValue,dimErrorValue[ErrorValueKey]=29))

Count of Processors Value FYI:=CALCULATE([Count of Processors],FILTER(dimErrorValue,dimErrorValue[ErrorValueKey]=47))

Count of Processors Value NA:=CALCULATE([Count of Processors],FILTER(dimErrorValue,dimErrorValue[ErrorValueKey]=78))

Count of Processors Value Opportunities:=CALCULATE([Count of Processors]-[Count of Processors Value Correct]-[Count of Processors Value FYI]-[Count of Processors Value NA])

Selected Month Count of Processors Value Opportunities:=Calculate([Count of Processors Value Opportunities],FILTER(dimCalendar,dimCalendar[ReportMonth]=[SelectedReportMonth]))

Thanks,
w
 

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,959
Messages
6,175,647
Members
452,663
Latest member
MEMEH

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