Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |