Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Help: what is the Dax code To use????
05-26-2023
10:14 AM
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 |
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023
12:11 PM

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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023
12:06 PM

@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
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
06-27-2023 07:29 AM | |||
07-14-2023 12:27 AM | |||
08-13-2024 11:30 PM | |||
03-18-2024 01:17 AM | |||
04-08-2024 03:04 PM |
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
121 | |
105 | |
84 | |
52 | |
46 |