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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Count of carried Keys (Stories) from one sprint to another sprint

Hi,

I have an requirement for count  of carried Key from one sprint to another sprint..

Please see the below data regarding requirement 

9538686419_0-1650296011121.png

 

I have tried with some dax formulas unfortunatley I couldn't able to find the correct output.. Below is the wrong output which I am getting now...

9538686419_1-1650296065641.png

 

Correct output should be

 For GV sprint 1carried Keys should be "0" ( because there is no Keys carried from previous sprint)

For GV sprint 2 carried Keys should be "5" ( Which are carried from previous sprint (GV Sprint 1))

 For GV Sprint 3 Carried Keys should be "Actual Keys which are Carried from GV Sprint 2"

Like wise All the GV sprints should show the count of carried stories from previous sprints. 

 

Thanks

Vijay 

 

 

 

1 ACCEPTED SOLUTION

@Anonymous 

After changing the data type to whole number and hopping that the sprint numbers are continuous series (please let me know if otherwise), then you can create the following measure

Currid Keys =
VAR CurrentSprintNumber =
    MAX ( Table[Sprint_Number] )
VAR CurrentSprintKeys =
    VALUES ( Table[Key] )
VAR PreviousSprintKeys =
    CALCULATETABLE (
        VALUES ( Table[Key] ),
        Table[Sprint_Number] = CurrentSprintNumber - 1
    )
RETURN
    COUNTROWS ( INTERSECT ( CurrentSprintKeys, PreviousSprintKeys ) )

View solution in original post

11 REPLIES 11
Anonymous
Not applicable

1. There is no separate column for sprint number. We can consider Sprint name as sprint number because in that column we can see the sprint number as well...

2. There is no Index column

Thank you...

@Anonymous 

You need an integer data type column otherwise we cannot recognize which Sprint name is the next one. Are you allowed to add columns, probably easiest using power query. Just get the number in a seperate whole number type column. 

Anonymous
Not applicable

I am working end to end in this project .. I am allowed to create columns

 

Please tell me what need to be done exactly to get correct out put...

@Anonymous 

Open the query editor and select add column "From Example". Type the column name then start inserting manualy the number of the sprint. After 2 or 3 examples power query will be to identify the patern and will automatically insert all other values. Once done please let me know in order to guide you through the complete solution. 

Anonymous
Not applicable

I have Inserted the column as you said... Please tell me the next step.

9538686419_0-1650303890047.png

 

@Anonymous 

If sprint numbers are not continuous series then I hope the following works

Currid Keys =
VAR CurrentSprintNumber =
    MAX ( Table[Sprint_Number] )
VAR CurrentSprintKeys =
    VALUES ( Table[Key] )
VAR PreviousSprintNumber =
    MAXX (
        FILTER (
            ALL ( Table[Sprint_Number] ),
            Table[Sprint_Number] < CurrentSprintNumber
        ),
        Table[Sprint_Number]
    )
VAR PreviousSprintKeys =
    CALCULATETABLE (
        VALUES ( Table[Key] ),
        Table[Sprint_Number] = PreviousSprintNumber
    )
RETURN
    COUNTROWS ( INTERSECT ( CurrentSprintKeys, PreviousSprintKeys ) )

@Anonymous 

After changing the data type to whole number and hopping that the sprint numbers are continuous series (please let me know if otherwise), then you can create the following measure

Currid Keys =
VAR CurrentSprintNumber =
    MAX ( Table[Sprint_Number] )
VAR CurrentSprintKeys =
    VALUES ( Table[Key] )
VAR PreviousSprintKeys =
    CALCULATETABLE (
        VALUES ( Table[Key] ),
        Table[Sprint_Number] = CurrentSprintNumber - 1
    )
RETURN
    COUNTROWS ( INTERSECT ( CurrentSprintKeys, PreviousSprintKeys ) )

@Anonymous 

Also please advise how are you planning to disply the results

Anonymous
Not applicable

I have changed this data type to whole number..

I have to show this data in column chart as per Sprints ..( Example :- In Xaxis,  I will give Sprint names & In Values, I will give Carried Keys Count )

Change data type to whole number

tamerj1
Super User
Super User

@Anonymous 

Do you have a sprint number or index column in your source data?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.