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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.