Skip to main content
Showing results for 
Search instead 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

Helper I
Helper I

Add two measures after a date

Hello Power BI Community.

I am trying to sum two DAX measures, but I need them to be summed only after a certain date (after the line in the image). I tried with an if but it didn't work. I would appreciate if you can give me some ideas to solve this problem.

The measures are SUM OIL REAL(BLS) and FCST OIL.

Thanks in advance for your support.



Community Support
Community Support

Hi @CarlosOlmos29 ,

I create a table and two measures as you mentioned.


Then I create a measure and here is the DAX code.


Measure = 
    'Table'[Measure1] + 'Table'[Measure2],
    FILTER ( 'Table', 'Table'[Date] > DATE ( 2024, 1, 2 ) )






Best Regards

Yilong Zhou

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

Super User
Super User

@CarlosOlmos29 You can use the below measure to achieve your result, in my case I took the date after 2-Jan-2024, likewise you can write your expected date value.

Measure = CALCULATE(SUM('Table'[Value1])+SUM('Table'[Value2]),FILTER('Table','Table'[Date]>DATE(2024,1,2)))





Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

It worked with the date, but it is not adding up the measurements. It looks like the screenshot below.



This is the measure I am using:

Real + fcst = CALCULATE([SUMA OIL REAL(BLS)] + [FCST OIL],FILTER(Consolidado, Consolidado[VOLUME_DATE] > MAX(Real[VOLUME_DATE])))
I think it is not adding up because the SUMA OIL REAL(BLS) data is being repeated after March 15. Actually there is no more data entered after that date. We could modify the measurement so that the last data of March 15 of SUMA OIL REAL is added with the one of April 15 of FCST OIL.
Helper I
Helper I

I may be miss understanding but can you not just add a date filter?

How? I tried to use the next measure:

Real + fcst = CALCULATE([SUMA OIL REAL(BLS)] + [FCST OIL],Consolidado[VOLUME_DATE] >= [FechaCorte])
([FechaCorte] is the date from which I want the measurements to start adding up) 
But the measurement gives me an error

So it looks like its pulling in a list of dates try using the ISONORAFTER function:
ISONORAFTER function (DAX) - DAX | Microsoft Learn

If you can help me with the measure I would aprecciate it 🙂 I don't know how to use it in this case

Helpful resources

Europe Fabric Conference

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 Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.