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.
Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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:
- 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.