Forum Discussion
Anonymous
9 years agoNot applicable
Last Date with Filter DAX
Hello There, I am wondering if I should be using power BI to calculate my last date based on certain condition. For ex: I have a below table: Batch Name| Process Name| Status | last s...
Greg_Deckler
9 years agoCommunity Champion
You should be able to create a measure like:
Measure = CALCULATE(MAX('Table'[Date]),FILTER('Table',[Status]="Success"))Put this in a table along with your columns you specified and you should be good to go.
Eric_Zhang
9 years agoMicrosoft Employee
@smoupre wrote:
You should be able to create a measure like:
Measure = CALCULATE(MAX('Table'[Date]),FILTER('Table',[Status]="Success"))Put this in a table along with your columns you specified and you should be good to go.
Just in case, you may use the process date('Table'[Date]) in a slicer,
Measure =
CALCULATE (
MAX ( 'Table'[Date] ),
ALLEXCEPT ( 'Table', 'Table'[Batch Name], 'Table'[Process Name] ),
FILTER ( 'Table', [Status] = "Success" )
)