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
TrippelA
New Member

Lenght of membership

I need some help with a DAX formula to calculate the length of membership.

I have used the following formula


Active Clients = CALCULATE ([Total Clients]; FILTERS (Clients1; Clients1 [Client: Date Contract Start] <= LASTDATE ('Date uses' [Date]) && (Clients1 [Client: Date Contract End]> = FIRSTDATE (' Date User '[date])))

 

The problem is that it does not include they who is still a member because there is no date registered in the "Date Contract End" . I expect that I must use IF here in some context, so that if the Date Contrat End is empty then TODAY  is selected.

 

Hope some one can help me with this.

0 REPLIES 0

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.

Top Solution Authors