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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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