Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DAX Help | Parallel Period (Pbix attached)

Hi! I am trying do a viz counting of # of hired made in a certain month, and then comparing it to the previous month.. I did a DAX calculation w. Parallel Period but I am getting the entire column ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    According to your description, here are my steps you can follow as a solution.

    (1)My test data is the same as yours.

    (2) We can create a measure. 

    # of Hires Previous Month = 
    var _pre=MONTH(EOMONTH(MAX('DateTable'[Date]),-1))
    return CALCULATE([# of Hires],FILTER(ALL('DateTable'),MONTH('DateTable'[Date])=_pre))

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.