Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How do I create a measure or created column identifying the first date occurring in a table after a given critical date?
Scenario
Our team assumed responsibility for a large, active body of content and needs to identify when a given article came into scope for us (was published after the date we assumed responsibility). The table is pulled daily from an Azure DevOps (ADO) analytics view, so all dates of interest exist in the table.
Issue
I need to calculate this from the given table:
WorkItem | ID | Created | Published | Changed | InScope | Date | Current |
118751 | 4563447 | 5/19/2020 | 1/12/2021 | 1/12/2021 | Jul-20 | 1/12/2021 | TRUE |
118912 | 4563939 | 5/22/2020 | 12/10/2020 | 1/5/2021 | Aug-20 | 12/10/2020 | FALSE |
118912 | 4563939 | 5/22/2020 | 12/29/2020 | 1/5/2021 | Aug-20 | 12/29/2020 | FALSE |
118912 | 4563939 | 5/22/2020 | 1/5/2021 | 1/5/2021 | Aug-20 | 1/12/2021 | TRUE |
119068 | 4564386 | 5/27/2020 | 1/12/2021 | 1/12/2021 | Not in scope | 1/12/2021 | TRUE |
119579 | 4566055 | 6/5/2020 | 1/8/2021 | 1/11/2021 | Jan-21 | 1/12/2021 | TRUE |
120394 | 4570070 | 6/26/2020 | 6/26/2020 | 1/11/2021 | Not in scope | 1/12/2021 | TRUE |
120540 | 4570485 | 6/30/2020 | 12/24/2020 | 12/27/2020 | Not in scope | 1/12/2021 | TRUE |
120920 | 4572928 | 7/9/2020 | 7/10/2020 | 1/11/2021 | Jul-20 | 1/12/2021 | TRUE |
I have tried to extrapolate fromDAX Formula to Return First Date Based on Other column , but am not able to successfully incorporate the conditional clause. The furthest I've gotten on that front is to replicate the "Created" column, which doesn't meet my need.
I think I am on the right track with this conditional column formula:
InScope =
VAR DateFilter = FILTER(PubTable,PubTable[Published]>DATEVALUE(7/1/2020))
VAR FirstPub = CALCULATE(
FIRSTDATE(PubTable[Published]),
DateFilter,
ALLEXCEPT('PubTable','PubTable'[Published]
)
RETURN FirstPub
Thanks in advance for any insight you can provide!
Solved! Go to Solution.
UPDATE: I was able to derive the information I needed through a combination of filters on the Published field and Earliest calculation on the visual values.
This resulted in a matrix counting first publication of articles after the critical date.
I manually confirmed that each article listed was unique and that the listed publication date was the first after the critical date.
UPDATE: I was able to derive the information I needed through a combination of filters on the Published field and Earliest calculation on the visual values.
This resulted in a matrix counting first publication of articles after the critical date.
I manually confirmed that each article listed was unique and that the listed publication date was the first after the critical date.
Hi,
Please share the logic behind generating the dates in the InScope column.
Hi Ashish,
The logic is very straightforward:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |