Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Taurus007
New Member

Help to Sum 2 columns based on status columns and then find the net difference month over month

I am needing some help to get 2 sums then the difference of them afterwards.

Firstly, i need to sum if the month is Jan and  status open, Feb and  status Open, March and status Open all the way thru December.

Secondly, i need to sum if the month is Jan and  status closed, Feb and  status closed, March and status closed all the way thru December.

Finally, I need to find the net difference from Jan open and closed status to February open and closed status contnuing all the way thru december in this manner to create a trend in my graph.

 

I can send my pbix file to show what i have. I am able to count based on month and status of closed using this formula

 

 

 

columnclosedsum = Calculate(COUNTROWS('Table'),'Table'[Status]="close")

 

 

 

however, when i try to replicate that for another column for open items i get an error "<pi>A circular dependency was detected: Table[Column], Table[ClosedSumCol], Table[Column].</pi>"

 

Here is my data and an example screenshot of what i am expecting with a graph to help visulaze what i am trying to describe. I have the count working as previously mentioned for closed items and get a result of "1" in the closed sum column as expected if any month item has a status of open. I am expceting the same result in the open sum column however, it is giving me the error mentioned.

 

Once the open items are sumed.....then taking the net difference from open to closed per month (i.e. jan, jan-feb, etc) to use for a trend line.

 

PBIX file and Graph ex screenshot 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.  You may need to adjust the secondary Y axis.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.  You may need to adjust the secondary Y axis.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors