I am tryiting to find the cumulative sum . when using below code i was not able to chse my column after earlier function. Please suggest
Go to Solution.
Hi @Midhun ,
EARLIER function is useful to calculated column. Please check whether you are using it for measure.
You can use MAX function instead of EARLIER.
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
I tried with your DAX, still facing an issue. stating that
ARLIER/EARLIEST refers to an earlier row context which doesn't exist.
DAX engine interprets this filter modifier
CALCULATE( ... Email_Campaign[Dummy_Date] <= EARLIER( Table[someColumn] ) )
ALL( Email_Campaign[Dummy_Date] ),
Email_Campaign[Dummy_Date] <= EARLIER( Table[someColumn] )
and FILTER( ... ) evaluates under the filter context outside CALCULATE(); obviously, there's no row context avaible for EARLIER.
Learn how to create your own user groups today!
Click here to read more about the October 2021 Release!
Check out the new Power Platform Community Connections gallery!
Mark your calendars and join us for our next Power BI Dev Camp!