cancel
Showing results for
Did you mean:
Frequent Visitor

## Rolling month

Hi ,

I am using below formula to count Calculated_required_dates by 12 month rolling

TTM_sales3 =
VAR Currentdate = EOMONTH(Max ('Date'[CLOSED_DATE]),0)
var PreviousDate = EDATE ( EOMONTH (Currentdate, -1 ), -12 ) +1
VAR Result = CALCULATE (count('Work Delivery'[Calculated_REQUIRED_DATE]), Filter ('Work Delivery',MAX('Work Delivery'[CLOSED_DATE])>=PREVIOUSDATE && MAX('Work Delivery'[CLOSED_DATE])<= CURRENTDATE))
RETURN Result
I am getting the exact result but total is missing.Total is missing
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support

## Re: Rolling month

Hi @Priya2007

Assume the [Month_Closed] in the table 'Work Delivery', you can create a measure like below:

MeasureTotal=

VAR __table = SUMMARIZE('Work Delivery',[Month_Closed],"__value",[TTM_sales3])
RETURN
IF(HASONEVALUE('Work Delivery'[Month_Closed]),[TTM_sales3],SUMX(__table,[__value]))

Reference:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Support

## Re: Rolling month

Hi @Priya2007

Assume the [Month_Closed] in the table 'Work Delivery', you can create a measure like below:

MeasureTotal=

VAR __table = SUMMARIZE('Work Delivery',[Month_Closed],"__value",[TTM_sales3])
RETURN
IF(HASONEVALUE('Work Delivery'[Month_Closed]),[TTM_sales3],SUMX(__table,[__value]))

Reference:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

#### April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

#### MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors