Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
73 | |
64 | |
52 | |
51 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |