Forum Discussion
PBINewbie920
Helper I
4 years agoCreate Column for "in progress"
Hi!
I have a table that has three fields: Date, ID & Type. I want to create a third column to determine which projects are still in progress (those projects that do not have type=billed)
For instance, project ABC was billed on 1/5, so it is no longer in progress. However project JKL does not have a billed date, so it is still in progress.
| Date | Project ID | Type | In Progress? |
| 1/1/2022 | ABC | Booked | No |
| 1/1/2022 | DEF | Booked | No |
| 1/1/2022 | JKL | Booked | Yes |
| 1/1/2022 | MNO | Booked | Yes |
| 1/1/2022 | POQ | Booked | Yes |
| 1/5/2022 | ABC | Billed | |
| 1/5/2022 | DEF | Billed |
Any ideas how to create a column for this?
Thank you!!!
Hello PBINewbie920 ,
Please try below calculated column -
In Progress = VAR _Count = CALCULATE ( COUNT ( 'Table'[Project ID] ), FILTER ( 'Table', 'Table'[Type] = "Billed" && 'Table'[Project ID] = EARLIER ( 'Table'[Project ID] ) ) ) RETURN IF ( FIRSTNONBLANK ( 'Table'[Type], 0 ) = "Booked" && ISBLANK ( _Count ), "Yes", "No" )Please mark it as solution if it solves your issue. Kudos are also appreciated.
1 Reply
- Shishir22
Solution Sage
Hello PBINewbie920 ,
Please try below calculated column -
In Progress = VAR _Count = CALCULATE ( COUNT ( 'Table'[Project ID] ), FILTER ( 'Table', 'Table'[Type] = "Billed" && 'Table'[Project ID] = EARLIER ( 'Table'[Project ID] ) ) ) RETURN IF ( FIRSTNONBLANK ( 'Table'[Type], 0 ) = "Booked" && ISBLANK ( _Count ), "Yes", "No" )Please mark it as solution if it solves your issue. Kudos are also appreciated.