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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
RogueTrooper
Regular Visitor

Calculate sum based on end of month date

Hi.  I'm having an anoying error with my current formula.

 

The idea is to calulate the value of shipped orders upto and including the current month.

 

Error reported is "Too few arguments were passed to the EOMONTH function.  The minimum argument count for the function is 2"

 

Formula:

ALL OS VALUE PERIOD = CALCULATE(SUM(MNSalesOrderLine[OS LCY Value]),

FILTER(MNSalesOrderLine,MNSalesOrderLine[Shipment_Date] <=EOMONTH(MAX(LastRefreshedDate[DateLastRefreshed],0)
 
Any thoughts?
 
Regards
 
Wayne
 
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Like this

<=EOMONTH(MAX(LastRefreshedDate[DateLastRefreshed]),0)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Like this

<=EOMONTH(MAX(LastRefreshedDate[DateLastRefreshed]),0)

Excellent!

 

Thanks for taking the time to help resolve this.

tamerj1
Super User
Super User

@RogueTrooper 

You forgot to colse MAX before ",0"

Hi.  Thanks for the quick reponse.

 

Not sure I quite understand.  Do you mean is should end:

<=EOMONTH(MAX(LastRefreshedDate[DateLastRefreshed]",0")
as the system reports an syntax error on ",0"
 
Regards
 
Wayne

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors