Forum Discussion

PBIX_COACH's avatar
PBIX_COACH
Icon for Helper II rankHelper II
3 years ago
Solved

Customer Count by Active Years

Hello Team I need some assistance getting a DAX formula to work for this. I have two tables (Customers sales table and Calendar table) connected by the date field and I would like to get a count of t...
  • tamerj1's avatar
    3 years ago

    Hi PBIX_COACH 
    You can use the matrix total column to present the Total Active Years (You can simply rename it). You need to replace the current measure (Measure1) with the following

    Measure2 =
    IF (
        ISINSCOPE ( 'Date'[Year] ),
        [Measure1],
        COUNTX ( VALUES ( 'Date'[Year] ), [Measure1] )
    )