Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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:
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 |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |