Forum Discussion
MINX with multiple conditions
- Anonymous1 year ago
Hi Anonymous ,
Try this calculated column:
DATEFORMPREVIOUS = VAR __cur_id = 'Table'[ID] VAR __cur_event = 'Table'[EVENT] VAR __cur_index = 'Table'[INDEX] VAR __result = CALCULATE ( MIN ( 'Table'[DATE1] ), FILTER ( ALL ( 'Table' ), 'Table'[ID] = __cur_id && 'Table'[EVENT] = __cur_event && 'Table'[INDEX] = __cur_index - 1 ) ) RETURN __resultBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi Anonymous ,
Try this calculated column:
DATEFORMPREVIOUS =
VAR __cur_id = 'Table'[ID]
VAR __cur_event = 'Table'[EVENT]
VAR __cur_index = 'Table'[INDEX]
VAR __result =
CALCULATE (
MIN ( 'Table'[DATE1] ),
FILTER (
ALL ( 'Table' ),
'Table'[ID] = __cur_id
&& 'Table'[EVENT] = __cur_event
&& 'Table'[INDEX] = __cur_index - 1
)
)
RETURN
__result
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- Anonymous1 year agoNot applicable
Thank you so much! This solved my problem!