Forum Discussion
CarlosOlmos29
2 years agoHelper 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 ap...
Anonymous
2 years agoNot applicable
Hi CarlosOlmos29 ,
I create a table and two measures as you mentioned.
Then I create a measure and here is the DAX code.
Measure =
CALCULATE (
'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.