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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello all, the measure below has been working great until a few days ago when the users decided to start moving tasks back into a bucket where the task may have started. The measure assumes that the tasks will advance through the buckets. Now when the task gets moved back into a previous bucket, the measure is ignoring the newer date. you can see the issue in the sample data below. The Backlog on line 2 is the current Bucket and should have started it's duration on 3/16. Thanks for any help
TaskName | BucketName | BucketStartDate | BucketEndDate | Created |
Customer A | Backlog | 1/12/2023 | 3/1/2023 | 1/12/2023 |
Customer A | Backlog | 1/12/2023 | 3/1/2023 | 3/16/2023 |
Customer A | Not Interested / No Response | 3/1/2023 | 3/16/2023 | 3/1/2023 |
Bucket Start Date =
VAR _currentBucket =
MIN(FactTable[BucketID])
VAR _currentTask =
MIN(FactTable[TaskID])
RETURN
CALCULATE(
MIN(FactTable[Created]),
FILTER(
ALL(FactTable),
FactTable[BucketID] = _currentBucket && FactTable[TaskID] = _currentTask
)
)
@rixmcx59 Maybe:
Bucket Start Date =
VAR _currentBucket = MIN(FactTable[BucketID])
VAR _currentTask = MIN(FactTable[TaskID])
VAR _table =
FILTER(
ALL(FactTable),
FactTable[BucketID] = _currentBucket && FactTable[TaskID] = _currentTask
)
VAR _result = MAXX(__table, [Created])
RETURN
_result
Thanks so much for the reply. I tried your measure and it's ignoring the first Bucket Start date, although it is accurate in returning the current Backlog bucket start. One of my report pages is tracking Bucket Change/Bucket duration, in this case I would need to track "Backlog" duration, then "Not Interested/No Response" duration and then Backlog again. I need the measure to capture start and end date no matter what the Bucket ID/Name is. Thanks
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 |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |