Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a quiet complicated logic that I would like to use to create a new table. The case is the following:
I have devices that each also have an ID. whenever a process has taken place it's recorded and also whether this process was a seccus or failed. I'm interested in the failed processes: If processes for an idea fail at least 3 times in a row, I assume the whole device has failed. I would like to count the cases where at least 3 fails took place after one another.
I also want a current mode for each device, meaning: wether the device in running as usual, or is in failure mode. Failure mode is when the last 3 records for a device has failed, and no process with succes has occured after it.
The way it is noted when a process failed, is when the column "Action" has "Fail" and the column "Status" is empty/blank.
I created an example of the table that I have, what logic I want to use, an what table I would like to have in the end:
I have no idea where to start, I have never worked with cases like this so that's why I'm asking. Any tip is very welcome
Hello @Anonymous check this out
https://community.fabric.microsoft.com/t5/Desktop/Count-when-the-same-value-is-repeated-3-times-in-a-row-in-the/td-p/1806821
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |