Count Distinct Value irrespective of Month only Single Value should be shown

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi,

I have 5 columns Year, Qtr, ID, Volume Type and Date received in one table, Volume type in another table and a data table

I would like to get a unique count of values. The date received could be different, however if we concatenate the 1st four columns irrespective of which date it was received it should give me a unique value in the pivot, where the coulmn is months.

If the value occurs in July and then September It should could show the value under July or September not both.
eg:
[TABLE="width: 263"]
<tbody>[TR]
[TD]

<col style="mso-width-source:userset;mso-width-alt:6070;width:125pt" width="166"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <tbody>
[TD="class: xl65, width: 166"][/TD]
[TD="class: xl65, width: 166"][/TD]
[TD="class: xl65, width: 166"]Unqiue Value
[/TD]
[TD="class: xl65, width: 97"]Received Date[/TD]

[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]20153A123passwordreset
[/TD]
[TD="class: xl65"]31stjuly[/TD]

[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]20153A123passwordreset[/TD]
[TD="class: xl65"]1stjuly[/TD]

[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]20153A123passwordreset[/TD]
[TD="class: xl65"]30thAugust[/TD]

</tbody>
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Below is my measure

IFERROR(CALCULATE(DISTINCTCOUNT('CH Comments'[Unique Updates]),datesbetween(Dates[Dates],'Year_Period'[Selected_Month_Start_Date],'Year_Period'[Selected_Month_End_Date])),blank())
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Regards,
Renato.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,224,151
Messages
6,176,715
Members
452,740
Latest member
MrCY

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