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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Cumulative Running Total Backlog PowerBI report

Hi 

 

I'm trying to create a PowerBI report using Azure DevOps (Analytics View) WorkItems Backlog.  I  have a calender table with default Date Column (Date/Time datatype) and Main table with Created Date , Closed Date .  Based  on some help from this community posts, I have created few measures which seems to be working except Cumulative running total . appreciate if anyone guide me what I'm missing here. 


Main Table Name >> Dashboard 

Columns used from Main Table >> Created Date, Closed Dated, Work Item Id

Date table 

DateTable = CALENDAR(MIN(Dashboard[Created Date]),MAX(Dashboard[Created Date]))
 
Measures:
 
ADOCreated = COUNTA('Dashboard'[Created Date])
ADOClosed = CALCULATE(COUNTA(Dashboard[Closed Date]), USERELATIONSHIP('DateTable'[Date], Dashboard[Closed Date]))
ADOBalance = [ADOCreated] - [ADOClosed]
ADOBacklog = CALCULATE([ADOBalance],FILTER(ALL(DateTable),DateTable[Date]<=MAX(DateTable[Date])))
 
But the last column where i need to display the cumulative running total doesn't seem to be working. 
 
backlog.jpg
5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
 
Best Regards
Lucien
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please try something like below.

 

ADOBacklog =
CALCULATE (
SUMX ( VALUES ( datetablemonthcolumn ), [ADOBalance] ),
FILTER ( ALL ( DateTable ), DateTable[Date] <= MAX ( DateTable[Date] ) )
)

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Thanks. I tried and it didnt work yet. Hope you can see my reply (with more details) in this thread. It sill gives the difference between Created Count vs Closed Count

ADOBacklogCount =
CALCULATE (
SUMX ( VALUES ( Dashboard[CreatedDateMod].[Month] ), [ADOBalance] ),
FILTER ( ALL ( DateTable ), DateTable[Date] <= MAX ( DateTable[Date] ) )
)
amitchandak
Super User
Super User

Anonymous
Not applicable

hi @amitchauhan 

I think I referred your post from the forum earlier. Anyway, With the CurrentEmployers example I followed and it seems to be return the balance not the cumulative total yet. Not sure I'm doing something wrong with the way I define the date etc...  I have my X Axis  in the chart / Date  column in matrix is based on formated "Created Date" which is 

CreatedDateMod = FORMAT('Dashboard'[Created Date],"mm/dd/yyyy")


Here is my various try of calculating cumulative measure including your your suggestion (last one)  from  your example which I downloaded the PBIX

ADOCreated = COUNTA('Dashboard'[Created Date])
ADOClosed = CALCULATE(COUNTA(Dashboard[Closed Date]), USERELATIONSHIP('DateTable'[Date], Dashboard[Closed Date]))
ADOBalance = [ADOCreated] - [ADOClosed]
ADOBacklog = SUMX(FILTER(ALL('Calendar'),'Calendar'[Date] <= MAX('Calendar'[Date])),[ADOBalance])
ADOO = 
CALCULATE(
          COUNTx(
                 FILTER(
                           Dashboard, Dashboard[Created Date] <= MAX(DateTable[Date]) && 
                           (ISBLANK(Dashboard[Closed Date]) || 
                           Dashboard[Closed Date] > MAX(DateTable[Date]))
                       ),
                       (Dashboard[Work Item Id])
                ),
                CROSSFILTER
                (
                    Dashboard[Created Date],DateTable[Date],None
                )
         )

 
Can you let me know if I'm missing anything

BACKLOG.jpg

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.