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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
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
v-zhangti
Community Support
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:

vzhangti_0-1666854643686.png

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

vzhangti_1-1666854669659.png

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])))

vzhangti_2-1666855107412.png

 

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.

View solution in original post

1 REPLY 1
v-zhangti
Community Support
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:

vzhangti_0-1666854643686.png

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

vzhangti_1-1666854669659.png

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])))

vzhangti_2-1666855107412.png

 

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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.