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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Rally00
Regular Visitor

Help Max date

Hello everyone,

for a table I should group the values ​​by max date. In particular, for each ID I should have the maximum date

 

IDDate
0WO1i000001yEKeGAM12/03/2022
0WO1i000001yEKeGAM14/03/2022
0WO1i000001yEKeGAM15/03/2022
0WO1i000001yEKeGAM16/03/2022
0WO1i000001yEKeGAM17/03/2022
0WO1i000001yEKeGAM13/03/2022
0WO1i000001yEKeGAF16/03/2022
0WO1i000001yEKeGAF17/03/2022
0WO1i000001yEKeGAF13/03/2022

I expect a similar result

IDDate
0WO1i000001yEKeGAM17/03/2022
0WO1i000001yEKeGAF

17/03/2022

Thank you

Dom

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@Rally00 

 

FerhatLyes_0-1647350712869.png

 

Did I answer your question? Thanks to mark my post as a solution 

 

View solution in original post

Remove the extra closing square bracket .[Date]]


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

9 REPLIES 9
Anonymous
Not applicable

hi @Rally00 ,

 

i think the is : 

Table 2 = SUMMARIZE('Table','Table'[ID],"DATE", LASTDATE('Table'[Date]));
i have tried this function with this example : 
 

ID                                                     Date

0WO1i000001yEKeGAM 12/03/2022
0WO1i000001yEKeGAM 14/03/2022
0WO1i000001yEKeGAM 15/03/2022
0WO1i000001yEKeGAM 16/03/2022
0WO1i000001yEKeGAM 17/03/2022
0WO1i000001yEKeGAM 13/03/2022
0WO1i000001yEKeGAF 16/03/2022
0WO1i000001yEKeGAF 18/03/2022
0WO1i000001yEKeGAF 13/03/2022

and the the result was : 

ID                                                DATE

0WO1i000001yEKeGAM 17/03/2022 00:00:00
0WO1i000001yEKeGAF 18/03/2022 00:00:00

 

 

hope that it can help 😄 

 

Did I answer your question? Thanks to mark my post as a solution 😁

 

Thank you very much for the answer but where do I insert the function? 😁

.

 

Anonymous
Not applicable

@Rally00 

 

FerhatLyes_0-1647350712869.png

 

Did I answer your question? Thanks to mark my post as a solution 

 

Hi I have inserted the following function, as you indicated 
T_Max_Receipdate = SUMMARIZE(gii__receipt__c,gii__receipt__c[gii__transferorder__c],"DATE",LASTDATE(gii__receipt__c[gii__receiptdate__c - Date].[Date]]))
but now the message "the end of the input has been reached" appears .. what is not correct?
Thanks
Dom
 

Remove the extra closing square bracket .[Date]]


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Fantastic!!!!

Thanks

Dom

mh2587
Super User
Super User

Just select the earliest date option in the field section by clicking drop option you will see earliest date option


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Thanks for the answer but sorry I didn't understand. I forgot to mention that the result of the max will then join with another table via the ID

Would you please upload the screenshot of the visulization pane of the right side 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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