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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.