cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## Earlier Function not Working

Hi,

The following function was working fine until I try to use it again this month. Do anyone experience the same or have any solution? I am trying to sum the volume by month but the Earlier() does not regsiter any column selection.

Calculate (

Sum ( Table1.volume,
Filter( Table1,
Month ( Table1.date ) = Month ( Earlier ( Table1.date ))

)

)

Thank you so much,

Jeff

1 ACCEPTED SOLUTION
Community Support

Hi, @Anonymous

I have no problem testing this formula on my side. You can check if the columns of data involved in the formula have changed.

Sample data:

``````Column = Calculate (Sum ( 'Table'[Volume]),
Filter('Table',
Month ('Table'[Date]) = Month(Earlier ('Table'[Date] ))))``````

There are other ways you can try.

``````Column 2 = CALCULATE(SUM('Table'[Volume]),
FILTER(ALL('Table'),
[Date].[Month]=EARLIER('Table'[Date].[Month])))``````
``Month = MONTH([Date])``
``````Column 4 = CALCULATE(SUM('Table'[Volume]),
FILTER(ALL('Table'),
[Month]=EARLIER('Table'[Month])))``````

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support

Hi, @Anonymous

I have no problem testing this formula on my side. You can check if the columns of data involved in the formula have changed.

Sample data:

``````Column = Calculate (Sum ( 'Table'[Volume]),
Filter('Table',
Month ('Table'[Date]) = Month(Earlier ('Table'[Date] ))))``````

There are other ways you can try.

``````Column 2 = CALCULATE(SUM('Table'[Volume]),
FILTER(ALL('Table'),
[Date].[Month]=EARLIER('Table'[Date].[Month])))``````
``Month = MONTH([Date])``
``````Column 4 = CALCULATE(SUM('Table'[Volume]),
FILTER(ALL('Table'),
[Month]=EARLIER('Table'[Month])))``````

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors