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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.