Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Circular Dependency Error

Hi Guys,   I am a self-taught power bi user so I kind of still have problems when it comes to creating measures and columns.    I attempted to create a calculated column which shows me vs Previou...
  • dax's avatar
    dax
    6 years ago

    Hi Anonymous , 

    You could try to use below calculated column to see whether it work or not.

    SoM2 = CALCULATE(SUM(Sheet1[Sales]),FILTER(Sheet1, YEAR(Sheet1[MONTH])*100+MONTH(Sheet1[MONTH])= YEAR(EARLIER(Sheet1[MONTH]))*100+MONTH(EARLIER(Sheet1[MONTH]))-1))

    I use sheet2 in your sample as dataset. You could refer to my sample for details.

     

    Best Regards,
    Zoe Zhi

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