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

Total SUM of story points per month based on state

Hi, 

 

I'm new to Power BI/DAX and I'm struggling to create a visualisation. 

What I would like to have is a stacked column chart which displays the total SUM of story points per month based on the state of the ticket in that period.

The totals for all states apart from "Resolved" should rollover to the next month unless the state changes.  

 

Example data

 

Transactions Table

IDCreated DateOldStateNewStateExitDate
TEST0101/01/2019CreatedNew02/02/2019
TEST0102/02/2019NewBacklog01/03/2019
TEST0101/03/2019BacklogResolvedNULL
TEST0201/01/2019CreatedNew01/03/2019
TEST0201/03/2019NewBacklogNULL
TEST0301/02/2019CreatedNewNULL
TEST0401/02/2019CreatedNew20/02/2019
TEST0420/02/2019NewBacklogNULL
TEST0501/03/2019CreatedNewNULL
TEST0601/03/2019CreatedNew20/03/2019
TEST0620/03/2019NewBacklogNULL
TEST0705/03/2019CreatedNew25/03/2019
TEST0725/03/2019NewBacklog01/04/2019
TEST0701/04/2019BacklogResolvedNULL


TicketList Table

IDCreated DateResolved DateCurrent StateStory Points
TEST0101/01/201901/03/2019Resolved5
TEST0201/01/2019NULLBacklog2
TEST0301/02/2019NULLNew3
TEST0401/02/2019NULLBacklog5
TEST0501/03/2019NULLNew9
TEST0601/03/2019NULLBacklog1
TEST0705/03/201901/04/2019Resolved4


Manually Constructed Pivot

 NewBacklogResolved
Jan19700
Feb192100
Mar1912125
Apr191284

 

I'm really sure where to start with this issue, any advice would be appreciated.

 

Many Thanks, 

Daniel

 

1 REPLY 1
Anonymous
Not applicable

Using the following calculated column I have been able to calculate the correct values when in the ticket is in the "Resolved" state however I can't figure out how to carry over the values from the previous months when in other states. 

 

 

TEST = IF( 
        ISBLANK(Transactions[ExitDate]) && Transactions[NewState] == "Resolved", CALCULATE(SUM(TicketList[Story Points])), 
        CALCULATE(SUM(TicketList[Story Points])
))

 

 

image.png

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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