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

Help needed for DAX rolling calculation

$
0
0

Last60Days = IF(AND([Date] >= [Today]-60, [Date] <= [Today]),1,0)

 

Capture.JPG

I am trying to calculate the rolling number of completed and planned meetings.  

 

For the completed meetings, I'm trying to calculate the number of meetings in the past 60 days, while the planned meetings I'm trying to calculate the planned meetings in the future.  I believe I got the past 60 days calculation correct, but it's totaling wrong with the "61".  Also, I am not sure how to do the calculation for the planned meetings.

 

I had invoked a table using the script found here:

 

http://www.mattmasson.com/2014/02/creating-a-date-dimension-with-a-power-query-script/

 

If someone could help me with the DAX formula, that would be great!  Thanks!

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles