cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

calculating Last Login

Hi, 

 

I have webinar attendees for various webinars. And I would like to have a new table with each attendee and his last attendance, because they mostly attended multiple times. What I did, was the following: 

 

Data - Attendees =
ADDCOLUMNS (
    DISTINCT ( 'Data - Webinar Attendees'[E-Mail] ),
     "Last Login", calculate(LASTDATE('Data - Webinar Attendees'[Login].[Date])))
 
What then happens is that I get a table with two columns:
 
AttendeesLast Login

Dan

31.12.2022
...31.12.2022
...31.12.2022
...31.12.2022

 

I dont know which DAX-Formula to use?! The "lastdate" isnt working obviously because "31.12.2022" is in the future which is not possible and which is no data in my table. the last date in my data is "3.11.2022". I also tried "max" and "maxa". 

 

I am looking forward to your help 🙂

 

Greets

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @SarahAlsterspre ,

 

You could use SUMMARIZE function (DAX) - DAX | Microsoft Learn.

For example:

new table = summarize('your table',attendees,max([login]))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @SarahAlsterspre ,

 

You could use SUMMARIZE function (DAX) - DAX | Microsoft Learn.

For example:

new table = summarize('your table',attendees,max([login]))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hey, thanks. I think this doesnt work because I dont have an ID like in your example.

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Solution Authors