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
PriscillaCamp
Advocate IV
Advocate IV

DAX

Hi, I am trying to create a backlog column for my monthly volume of tickets. I have an open measure and a closed measure. Their formulas to create these measures are:

 

Opened = CALCULATE(COUNT(VolumeForRitmOpenandClosedTickets[RitmSysCreatedOn - Without Time]), USERELATIONSHIP(VolumeForRitmOpenandClosedTickets[RitmSysCreatedOn - Without Time], 'VolumeCalendar'[Date]))

 

Closed = CALCULATE(COUNT([RitmClosedAt - Without Time] ), FILTER(VolumeForRitmOpenandClosedTickets,VolumeForRitmOpenandClosedTickets[RitmState]="Closed Complete")  ,USERELATIONSHIP(VolumeForRitmOpenandClosedTickets[RitmClosedAt - Without Time],'VolumeCalendar'[Date]))

 

What I would like to do is take the Backlog from the previous month and add (subtract) from the remainder (result of open – closed) for the current month. So for Oct 16…. Open - Close is 549 - 477 which leave a remainder of 72. I then want to take the backlog from last month (Sept 2016) and add it to the remainder to get the backlog for this Oct (72 +15) =84 backlog

 

The only exception would be for the first month - the formula would be a little bit different to kick it off. For July 2016 only, I would like to take the remaining column and put this value in the backlog field.

 

I included a picture, which may help explain easier what I am trying to say. I hope I was clear enough.

 

If you would like the PBIX file, I can send it to your email. Thank you in advance. For Forum.JPG

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @PriscillaCamp 

 

Please kindly check whether you'd like to get below results: (It's will be much helpful if you can attach the copyable table next time)

1.  Insert an index column in power query to keep the data sequence 

2. Use below measure:

Measure 2 = SUMX(FILTER(ALL(TableA),[Index]<=MAX(TableA[Index])),[Remaining])

6.PNG 

Note there're miscalculation in your previous capture.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

5 REPLIES 5
v-diye-msft
Community Support
Community Support

Hi @PriscillaCamp 

 

Please kindly check whether you'd like to get below results: (It's will be much helpful if you can attach the copyable table next time)

1.  Insert an index column in power query to keep the data sequence 

2. Use below measure:

Measure 2 = SUMX(FILTER(ALL(TableA),[Index]<=MAX(TableA[Index])),[Remaining])

6.PNG 

Note there're miscalculation in your previous capture.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
v-diye-msft
Community Support
Community Support

Hi @PriscillaCamp 

 

Please kindly paste your excel data here that I can copy it,  or preferable a pbix that I can draw it up for you.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi,

 

My file is from SQL Server. I do not know how to attach a PBIX to this message. Is there a place where I put it on your one drive?

 

Thanks.

Hi @PriscillaCamp 

 

1. You can upload your file to Onedrive/Dropbox, and share the link here. (Make sure the connection mode is Import, I can't view it on my side if it is in Direct query mode.

2. Alternatively, copy the table shown in the previous table, and paste it here with table format. that I can copy it.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
PriscillaCamp
Advocate IV
Advocate IV

Just to clarify -  the day column should be a year column in the picture

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.