Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
spandy34
Responsive Resident
Responsive Resident

View Records with the Maximum Date

I have the report below which lists projects of different Project Life Cycle Phase.

I need to display each the maximum Due date for Project Life Cycle Phase relating to each project

spandy34_0-1710774801130.png

 

Ive tried 

Tasks Max Date =
GROUPBY (
    'Tasks Main',
    'Tasks Main'[Mission ],
   'Tasks Main'[Project ],
    'Tasks Main'[Project Life Cycle Phase],
    "Max Date",
    MAXX ( CURRENTGROUP (), MAX ( 'Tasks Main'[Due Date:  ] ) )
 
but it is returning the max date as 
 
spandy34_0-1710778101656.png

 

@talespin @danextian @tamerj1 @amitchandak 

 

 

 

 

 

 

 

 

 

 

So based on the above I would like to see:-

 

Mission Attract and Retain Discovery & Design and the Maximum date for that Group

Mission Attract and Retain Closure and the Maximum date for that Group

(please ignore date format as these will be in date format)

 

Can someone please advise how I could approach this please?

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @spandy34 ,

 

try this:

CALCULATE (
    MAX ( 'tasks main'[due date] ),
    ALLEXCEPT (
        'tasks main',
        'tasks main'[mission],
        'tasks main'[project],
        'tasks main'[life cycle phase]
    )
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

talespin
Solution Sage
Solution Sage

hi @spandy34 

 

Replace ORD_ID and MLSTN with the fields you want to get the maximum date for. Similarly you can add more fields.

In CALCULATE , I am removing all filters and adding only those fielters for which I want to get the maximum date.

This is a Calculated Column

------------------------------------

Max Date by =
VAR _Ord_ID = Orders[ORD_ID]
VAR _MLSTN = Orders[MLSTN_CD]

RETURN CALCULATE( MAX(Orders[RECEIVED DATE]), REMOVEFILTERS(), Orders[ORD_ID] = _Ord_ID && Orders[MLSTN_CD] = _MLSTN)
 
talespin_0-1710822955512.png

 

View solution in original post

5 REPLIES 5
spandy34
Responsive Resident
Responsive Resident

That has worked too! Thank you so much for your help.  Much appreciated.

hi @spandy34 

 

You're welcome.

talespin
Solution Sage
Solution Sage

hi @spandy34 

 

Replace ORD_ID and MLSTN with the fields you want to get the maximum date for. Similarly you can add more fields.

In CALCULATE , I am removing all filters and adding only those fielters for which I want to get the maximum date.

This is a Calculated Column

------------------------------------

Max Date by =
VAR _Ord_ID = Orders[ORD_ID]
VAR _MLSTN = Orders[MLSTN_CD]

RETURN CALCULATE( MAX(Orders[RECEIVED DATE]), REMOVEFILTERS(), Orders[ORD_ID] = _Ord_ID && Orders[MLSTN_CD] = _MLSTN)
 
talespin_0-1710822955512.png

 

spandy34
Responsive Resident
Responsive Resident

That is brilliant ! Thank you for your help. I really appreciate it.

danextian
Super User
Super User

Hi @spandy34 ,

 

try this:

CALCULATE (
    MAX ( 'tasks main'[due date] ),
    ALLEXCEPT (
        'tasks main',
        'tasks main'[mission],
        'tasks main'[project],
        'tasks main'[life cycle phase]
    )
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors