Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48064

Count based on Min / Max Date by Quarter

$
0
0

So I have two measures that calculate the min and max date by quarter. These measures reside within what's basically a calendar table. When I add the quarter field, I can add the min / max dates to the table visualization without any issues. But now I'm trying to create another measure that counts the number of records based on that min and max date within that quarter. 

 

I've tried numerous things, but most recently: 

CALCULATE(Count(Salesforce[Id]), FILTER(CalendarTable,CalendarTable[FILE_DATE] = [MinFileDate]))

 

To no avail. I realize this probably has to do with some row-level context, but I can't seem to figure out the solution. The result right now is a count of all IDS by the entire Quarter (the first column in the table), but it's ignoring the MinFileDate filter. I think that's because at the row level all dates are the MinFileDate, but I need to "break out" of that to be MinFileDate by the Quarter itself. 

 

I need the Count of all IDs by Quarter AND on the minimum file date. 

 

Any help/thoughts would be appreciated. Thanks.

 

Jonathan 


Viewing all articles
Browse latest Browse all 48064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>