Power Pivot Measure and Time Formula help

Copper Contributor

Hi everyone. Your advice is much appreciated... hope the situtation is clear (apologies that I cannot upload files from work environment). 

 

I have set up the following measure to count the number of distinct "Gold" tiered clients that different teams have provided consultation services to. 

 

=calculate(DISTINCTCOUNT(ServiceDetail[Client Name]), ServiceDetail[Activity Type]=“Consultation”, ClientInfo[Tier]=“Gold”)

 
Building on this, I am trying to reference two other fields:
ServiceDetail[Activity ID]
ServiceDetail[Activity Date] 
in order to achieve the following:
 
1. I would like to count the number of Gold tiered clients that receive consultations on a regular basis. For example, at least 5 times in the past year. 
 
2. I would like to exclude duplicates (based on Activity ID). Sometimes the same activity is replicated within the ServiceDetail table if multiple team members are involved. 
 
I'm struggling to figure this out, so would be grateful for pointers!
 
1 Reply

@ahhk2000 

 

It's hard to say exactly. If I had your situation in front of me, I think I'd be trying some combination of the new functions (only available in the newest versions of Excel) FILTER, SORT, UNIQUE... combining them with COUNT or one of the other older functions that will count rows in a given population. FILTER can go through a database and extract (for COUNTing) rows that meet your specified criteria (and the criteria can be quite complex).

 

Here's a video that I have found very helpful in determining how those functions work.

https://www.youtube.com/watch?v=9I9DtFOVPIg

 

It may be that some other folks here will have other answers; if nothing comes forth that is satisfactory, perhaps you could post a facsimile of your sheet (actual Excel please; not just an image) just with all confidential info rendered anonymous.

Learn everything about our brand-new Dynamic Arrays and how you can use them to build advanced spreadsheets. Arrays (CSE) have long been present in Excel, but were limited to power users. With Dynamic Arrays we have rebuilt the calc engine, effectively turning all formulas into array formulas ...