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
kasife
Helper V
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?

kasife_0-1672328364383.png

 

This is the formula I'm using

 

Total repasses por produto = 

    CALCULATE(
        [_Qtde Repasses Realizados],
        ALLEXCEPT(f_reaal_realizado,f_reaal_realizado[Nome do Projeto Original],f_reaal_realizado[Módulo]))

 

 

1 ACCEPTED SOLUTION
Priya1969
Resolver I
Resolver I

Hi,
Use this calculation:
 
Max sales2 = CALCULATE(SUM(Sheet2[Sales]),FILTER(Sheet2, Sheet2[Date] <= EOMONTH(NOW(),-2)+1))
 
Output:
Priya1969_0-1672333362491.png

 

View solution in original post

2 REPLIES 2
Priya1969
Resolver I
Resolver I

Hi,
Use this calculation:
 
Max sales2 = CALCULATE(SUM(Sheet2[Sales]),FILTER(Sheet2, Sheet2[Date] <= EOMONTH(NOW(),-2)+1))
 
Output:
Priya1969_0-1672333362491.png

 

@Priya1969 Its worked perfectly. Thaniks so much

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.