Forum Discussion
Find the previous action
Hi MathieuF ,
Please consider providing a sample file that can cover the question and give the expected output. Note that it should not contain private data.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
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
Hello, here is an example of data : https://drive.google.com/file/d/1L4y2fVMP6UoilrKO5vpiCTTV5z-80D3i/view?usp=share_link
Thanks
- Anonymous3 years agoNot applicable
- MathieuF3 years ago
Helper III
Anonymous This should be good.
- Anonymous3 years agoNot applicable
Hi MathieuF ,
It seems that the key [action] field is missing from the data.
Please try:
Column = VAR _close_time = CALCULATE(MAX('Table'[created_at]),'Table'[action]="auto-close",ALLEXCEPT('Table','Table'[ID])) VAR _result =IF('Table'[created_at]=CALCULATE(MAX('Table'[created_at]),'Table'[created_at]<_close_time,ALLEXCEPT('Table','Table'[ID])),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