Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Switto
Helper III
Helper III

Rolling FTEs till current month

Hi everyone,

 

We are showing a trend graph for the rolling FTEs for pipeline and completed projects for the whole FY(July-June).

 

The pipeline FTE measure is working fine. For the closed FTEs, we need rolling FTE till the current month, and the rest of future months should show blank.

 

Switto_0-1638766199654.png

As you can see the measure is showing the data till Dec'22 but we need it till Dec'21(Current month).

 

We have used below formula to calculate the measure but it is not working.

mRolling_Closed_FTE = CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date])),MONTH('Calendar'[Date])<= MONTH(TODAY()))

 

Request your help in solving the issue.

 

Thanks

S

 

 

1 ACCEPTED SOLUTION

@Switto ,

 


mRolling_Closed_FTE =
var _max= eomonth(TODAY(),0)
return
CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) && eomonth('Calendar'[Date],0)<= _max))

 

or


mRolling_Closed_FTE =
var _max= eomonth(TODAY(),0)
return
if( eomonth(max('Calendar'[Date]),0)<= _max CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) )), blank())

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Switto , Try with EOMonth , not month

mRolling_Closed_FTE = CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) && eomonth('Calendar'[Date],0)<= eomonth(TODAY(),0)))

Thanks for coming back with the suggestion however after trying the above formula, it is showing the same result as before. 

@Switto ,

 


mRolling_Closed_FTE =
var _max= eomonth(TODAY(),0)
return
CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) && eomonth('Calendar'[Date],0)<= _max))

 

or


mRolling_Closed_FTE =
var _max= eomonth(TODAY(),0)
return
if( eomonth(max('Calendar'[Date]),0)<= _max CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) )), blank())

Hi Amit, Below formula worked 🙂

mRolling_Closed_FTE =
var _max= eomonth(TODAY(),0)
return
if( eomonth(max('Calendar'[Date]),0)<= _max ,CALCULATE([mCompleted_FTE],FILTER(ALL('Calendar'),'Calendar'[Date]<= MAX('Calendar'[Date]) )), blank())

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.