cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Helper V

## Sum up to current month

Hi Guys,
I'm doing the sum of sales considering project and module, but I need to consider only sales that were made up to the month before the current one. How could I do this?

This is the formula I'm using

``````Total repasses por produto =

CALCULATE(

1 ACCEPTED SOLUTION
Resolver I
Hi,
Use this calculation:

Max sales2 = CALCULATE(SUM(Sheet2[Sales]),FILTER(Sheet2, Sheet2[Date] <= EOMONTH(NOW(),-2)+1))

Output:

2 REPLIES 2
Resolver I
Hi,
Use this calculation:

Max sales2 = CALCULATE(SUM(Sheet2[Sales]),FILTER(Sheet2, Sheet2[Date] <= EOMONTH(NOW(),-2)+1))

Output:

Helper V

@Priya1969 Its worked perfectly. Thaniks so much

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.