Forum Discussion
Find the previous action
Hi MathieuF ,
Please try,
Auto-close =
VAR _close_time = CALCULATE(MAX('Table'[Time]),'Table'[action]="auto-close",ALLEXCEPT('Table','Table'[ID]))
VAR _result =IF('Table'[Time]=CALCULATE(MAX('Table'[Time]),'Table'[Time]<_close_time),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
Hello Anonymous ,
Thanks a lot for your help.
Is it possible to have a 1 just on the action which precedes and not all the actions which precede.
THANKS
- MathieuF3 years agoHelper III
Hello Anonymous,
Can you help me ?
Mathieu- Anonymous3 years agoNot applicable
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 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
- MathieuF3 years agoHelper III
Hello, here is an example of data : https://drive.google.com/file/d/1L4y2fVMP6UoilrKO5vpiCTTV5z-80D3i/view?usp=share_link
Thanks