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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
spencer_g
Helper I
Helper I

Cumulative Sum - The function MAX takes an argument that evaluates to numbers or dates and cannot...

Hello Everyone, 

 

I am trying to create a cumulative sum for a three-year period, and when I use this function:

 

Cumulative Employers = CALCULATE(SUM('I Employers'[Total Employers]),FILTER(ALL('I Employers'[Date Created]), 'I Employers'[Date Created] <= MAX('I Employers'[Date Created])))

 

I recieve the following error message:

 

The function MAX takes an argument that evaluates to numbers or dates and cannot work with values of type String.

 

If my formula isn't correct, what is the correct formula? If it is correct, how do I remedy the error? 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

Verify that date fields are Date TYPE no String.




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

Verify that date fields are Date TYPE no String.




Lima - Peru

Thanks, your reply prompted me to realize that I was using a "new column" with a formatted date instead of my original date contained in my data. This solved the problem of the error message. I'm still not getting the result I want from the formula, but at least the error is gone. Baby steps!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors