Forum Discussion

MadaM's avatar
MadaM
Regular Visitor
4 years ago
Solved

undefined

 


Hello all,
I have been trying to count how many people have joined in the previous month, but I am not getting a result for every month. I have the values only for the months which end in 31, but I need for all of them.
Does anyone know how it can be fixed ?

Thank you very much 

  • Hi MadaM 

    You may try

    Prev Month =
    VAR PreviousDate =
        EOMONTH ( MAX ( 'Monthly Joined'[Date Joined] ), -1 )
    RETURN
        CALCULATE (
            SUM ( 'Monthly Joined'[ContJoined] ),
            'Monthly Joined'[Date Joined] = PreviousDate
        )

2 Replies