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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
dshah12
Helper II
Helper II

Get the Maximum Date with comparision wrt other column

App noDates  
233315th March,2022  
233313th March,2023  
255513th March,2021  
255514th March,2022  

 

I want to return values with max date with respect to app no for example the below table shows the representation of values to return I utilized List.Max but it gives max for whole column I want it to compare wrt App no


But the dates are in the different tables and the data is coming with the direct query

233313th March,2023
2555 14th March,2022
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @dshah12 ,

 

Here are the steps you can follow:

Create measure.

Measure =
    MAXX(
        FILTER(ALL('Table'),
        'Table'[App no]=MAX('Table'[App no])),[Dates])

vyangliumsft_0-1686536745397.png

Create calculated table.

Table 2 =
SUMMARIZE(
    'Table','Table'[App no],
    "Date",
    MAXX(
        FILTER(ALL('Table'),
        'Table'[App no]=EARLIER('Table'[App no])),[Dates])
    )

vyangliumsft_1-1686536745400.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @dshah12 ,

 

Here are the steps you can follow:

Create measure.

Measure =
    MAXX(
        FILTER(ALL('Table'),
        'Table'[App no]=MAX('Table'[App no])),[Dates])

vyangliumsft_0-1686536745397.png

Create calculated table.

Table 2 =
SUMMARIZE(
    'Table','Table'[App no],
    "Date",
    MAXX(
        FILTER(ALL('Table'),
        'Table'[App no]=EARLIER('Table'[App no])),[Dates])
    )

vyangliumsft_1-1686536745400.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

What to do if  Application number and Date is in different tables 

nvprasad
Solution Sage
Solution Sage

Hi dshah12,

Simple MAX function will give this requried output. Please refer to the below snapshot.

 

nvprasad_0-1686251992038.png

 

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
N V Durga Prasad

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.

Thanks but it gives max for whole column instead of specific App No

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.