Forum Discussion
Circular Dependency Error
- 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 ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi amitchandak ,
Thank you so much for your response.
I tried doing what you suggested but I still keep getting the same error, any idea what could be done?
Thanks again for you help!
Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- Anonymous6 years agoNot applicable
Hi amitchandak ,
I attached the link for the data sample as per your request.
https://1drv.ms/x/s!Arv02489nwCfasEg-exG0dn1HhM?e=JpYVcf
Within the dashboard I created a calculated column for the SoM:
SoM2 = Sheet1[Sales (mio)]/CALCULATE(SUM(Sheet1[Mio Sales]),FILTER(Sheet1,Sheet1[MONTH]=EARLIER(Sheet1[MONTH])))and now I am looking to get a vs Previous month between jan and feb, however, as already stated I keep getting the circular dependency error.Thanks!- dax6 years agoCommunity Support
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 ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.