Dax Measure: How Many Projects Start in the Next 30 Days?

KMGLarson

New Member
Joined
May 14, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I have written a measure that I think should work, but it isn't working and I'm hoping someone here can help me troubleshoot. As you can see in the screenshot below, I have a table that shows a list of projects with their mobilization dates. My client wants to track how many projects are mobilizing in the next 30, 60, 90, and 120 days. The measure I've written returns nothing, but as you can see from the table, it should count 2 projects starting in the next 30 days - the 3rd and 4th row respectively on the table.

Here is the measure:
ConStart+30 = CALCULATE(COUNTROWS('Project Tasks'), FILTER('Project Tasks', [Task Name]="Mobilization"), DATESINPERIOD('Calendar'[Dates], TODAY(), 30, day))

Here is the screenshot:
1719599867752.png


Thanks in advance for any help you can offer!
Kirstin
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
This won't 100% work because I am not sure what filters you have in place... but how about:

Excel Formula:
CALCULATE(COUNTROWS('Project Tasks'), FILTER('Project Tasks', [Task Name]="Mobilization" && [Start] <= TODAY()+30))
 
Upvote 0
Thank you-that returns a count, but it counts all 4 instances, where it needs to just count the 2 instances between today and July 28.
But when I took your approach one step further and did did this:

ConStart+30 = CALCULATE(COUNTROWS('Project Tasks'), FILTER('Project Tasks', [Task Name]="Mobilization" && [Start]>=TODAY() && [Start]<=TODAY()+30))

It worked!

Now I can easily create the other 4 measures.
So thank you for the quick and easy solution!
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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