Forum Discussion

MohammedGouse's avatar
MohammedGouse
New Member
3 years ago
Solved

Dax Logic

Hi Team, I have table Name Attendees, Columns Attendee Date, and AttendeeID. Created a Measure,  Distinct Count of attendees. Under Slicer Between Attendees Date Has taken, now the requirement i...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi MohammedGouse,

    So you mean want to two step calculation to get the record count that both include current month and previous month?

    If that is the case, you can add a variable and replace the raw formula count calculation with VALUES function to extract and store the id list. Then you can extract the previous month id list and use INTERSECT function to compare with above list to get the 'return' count.

    INTERSECT function (DAX) - DAX | Microsoft Learn

    Regards,

    Xiaoxin Sheng