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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
IAmCare
Frequent Visitor

lastdate is not showing for current month

 

I need to show monthly totals for the current fiscal year .

This is what i have and it works just fine but does not show the total for the current month.

O_Current = calculate(sum(Query1[SalesOrderCount]),LASTDATE('Edw DimDate (3)'[Date]))

I need all the previous months and the total thus far for the current month.  Please help

 

pic.png

1 ACCEPTED SOLUTION
IAmCare
Frequent Visitor

I figured it out myself.  Thank you

O_Current = CALCULATE(SUM(OpenOrders[SalesOrderCount]),lastdate(DATESBETWEEN(OpenOrders[SnapshotDate],min('Edw DimDate (3)'[FiscalMonthStartDate]),Max('Edw DimDate (3)'[FiscalMonthEndDate]))))

View solution in original post

2 REPLIES 2
IAmCare
Frequent Visitor

I figured it out myself.  Thank you

O_Current = CALCULATE(SUM(OpenOrders[SalesOrderCount]),lastdate(DATESBETWEEN(OpenOrders[SnapshotDate],min('Edw DimDate (3)'[FiscalMonthStartDate]),Max('Edw DimDate (3)'[FiscalMonthEndDate]))))

v-shex-msft
Community Support
Community Support

Hi @IAmCare,

 

Can you please share some sample data to help us clarify your scenario?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.