March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Newbie here in Dax formula,
what formula should i use if this is the outcome that i want to see ( expected Result, i want to get the oldest date). Thank you so much for the help
ProfileId | Final Submission Date | DistinctProfileDate | expected Result | |
187475 | 10/03/2023 | 187475-3/10/2023 | 187475-3/10/2023 | |
187475 | 10/03/2023 | 187475-3/10/2023 | 187475-3/10/2023 | |
187475 | 27/03/2023 | 187475-3/27/2023 | blank | |
187475 | 27/03/2023 | 187475-3/27/2023 | blank | |
187475 | 27/03/2023 | 187475-3/27/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 01/04/2023 | 187475-4/1/2023 | blank | |
187475 | 24/04/2023 | 187475-4/24/2023 | blank | |
187475 | 24/04/2023 | 187475-4/24/2023 | blank | |
187475 | 27/04/2023 | 187475-4/27/2023 | blank | |
187475 | 27/04/2023 | 187475-4/27/2023 | blank | |
187475 | 27/04/2023 | 187475-4/27/2023 | blank | |
187475 | 28/03/2023 | 187475-3/28/2023 | blank |
Exprected Column Result =
IF ( 'Table'[ProfileId] = MIN('Table'[ProfileId])
&& 'Table'[Final Submission Date] = CALCULATE(Min('Table'[Final Submission Date]), Filter('Table', 'Table'[ProfileId] = MIN('Table'[ProfileId])
&& 'Table'[Final Submission Date] <= EARLIEST('Table'[Final Submission Date])))
, 'Table'[DistinctProfileDate], blank()
)
Column DAX code
@jhoyabel19 As a column:
expected Result column =
VAR __ProfileId = [ProfileId]
VAR __MinDate = MINX(FILTER('Table', [ProfileId] = __ProfileId), [Final Submission Date])
VAR __Result = MINX(FILTER('Table', [ProfileId] = __ProfileId && [Final Submission Date] = __MinDate), [DistinctProfileDate])
RETURN
__Result
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |