Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I have a 4 step process for different requests (a and b in the table). The process should be completed in the order from 1 to 4. That means that to complete 3 I need to complete 2 before. The last step with no completion date should be the active step. The problem is that I am missing dates in between. For example, for request (a) I don't have the date when step 2 was completed and therefore it appears to be active, but I can see when step 3 was completed. In that case I want to get a state where if the last step (step 4) is active, all other steps appear as completed. But if that step is not active everything should keep the status (completed - if there is a date, Active - if the previous date is available, and waiting if the previous date is not available.
I have tried the following formula:
IF(AND(Table[Processstep]="4",table[Fortschritt]="active"), "Active", IF(Table[Processstep]<>"4","completed",table[status])
However that formula, wil work for request a, but not for request b. I will be very thankful if you can give me an idea on how to solve that.
| Request | Process step | Date Completed | Status | Wanted Status |
| a | 1 | 10.05.2022 | Completed | Completed |
| a | 2 | Active | Completed | |
| a | 3 | 23.06.2022 | Completed | Completed |
| a | 4 | Active | Active | |
| b | 1 | 10.10.2022 | Completed | Completed |
| b | 2 | Active | Active | |
| b | 3 | Waiting | Waiting | |
| b | 4 | Waiting | Waiting |
Solved! Go to Solution.
@luzrueda , Try a new column
New column =
var _max = maxx(filter(Table, [Request] = earlier([Request]) && [Status] = "Completed"), [Process step])+0
return
if([Process step] <=_max, "Completed", [Process step])
@luzrueda , Try a new column
New column =
var _max = maxx(filter(Table, [Request] = earlier([Request]) && [Status] = "Completed"), [Process step])+0
return
if([Process step] <=_max, "Completed", [Process step])
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |