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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
power_roboter
Frequent Visitor

Calculate Retention Rate for two dates

Hi team,

 

I want to calculate the number of users that were active at date a and date b.

 

In this example the distinct number of users should be 2.

 

How can I calculate that with dax?

 

The following is my initial situation:

 

Date A -> 15.04.2020

UserId
A
B
C

 

Date B -> 08.04.2020

UserId
Z
A
B
V
4 REPLIES 4
Anonymous
Not applicable

Here you are - file attached. Works also with multiple selections of dates in both calendars.

 

Best

D

nandukrishnavs
Community Champion
Community Champion

@power_roboter  Can you provide a sample data set. Are you capturing dates in a different tables or the same table?


Regards,
Nandu Krishna

I have a column with UserIds (unique) that has a connection to a date table. So I can filter the userids for a specific day. Now I want to filter the userids for two days and calculate which users were active on both days.

 

Sample Table as image -> https://ibb.co/RvQRb0c

@power_roboter   - User will select always two days or multiple days?


Regards,
Nandu Krishna

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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