Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216047

counting events after "N days" after an event

$
0
0

Hi,
I want to count the total number of events occuring 'N' days after a particular event.

Basically, I am trying to analyze promotes we make to our production server. We have two types of promotes 1) In release  Promotes  -- made on a release date (many to 1 relationship with the release calander table)

2) Emergency promotes -- any promote that is not made on a scheduled released date.

Now, I want to compute the number of objects promoted within 7 days after each normal release.

 

CountA(‘promote all p’[Object])

 

I was able to do it as a computed column but I want to do it as a Measure because I want the numbers to change based on other filters (application code, division etc.).

 
My data model looks as below:

 
dm.png

 

A sample data looks like this

data.png

So, basically I want to count the objects/ULDs promoted within 10 days after each release.

The blank cells for release value are the out of release promotes. 


Viewing all articles
Browse latest Browse all 216047

Trending Articles



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