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
erhan_79
Post Prodigy
Post Prodigy

Sum of Before Actual Month

Hi there ;

 

i have a table as below ; 

 

İ would like to create a measure which calculates sum of Amount , based on the delivery date . System will calculate amounts based on before actual month delivery dates.

As you see below there are 3 orders which has delivery  date before then actual month (February 2021, marked yellow ) ,  calculation will not care order4 and order5 because their delivery date is on  february 2021 or  later .So i would like to get result sum of Order1,Order2,Order3 =  600 

 

thanks in advance 

 

Capture.JPG

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@erhan_79 , Try a measure

calculate(sum(Table[Amount]) , filter(Table, Table[Delivery Date] <eomonth(today(),-1)+1))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@erhan_79 , Try a measure

calculate(sum(Table[Amount]) , filter(Table, Table[Delivery Date] <eomonth(today(),-1)+1))

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.