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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JeevanMallya
Resolver II
Resolver II

Generate TOTAL_INSPRINTBUGS_SPRINTWISE and show Issue Key that can be used for Drill through later

I have the following table

PROJECT_KEYSPRINT_NAMEISSUE_KEYYEAR
ABCABC Sprint 01ABC-3902022
ABCABC Sprint 01ABC-3922022
ABCABC Sprint 02ABC-4362022
ABCABC Sprint 02ABC-4372022
ABCABC Sprint 02ABC-4382022
ABCABC Sprint 03ABC-4632022
ABCABC Sprint 03ABC-4772022
ABCABC Sprint 07ABC-8572022
ABCABC Sprint 07ABC-8582022
ABCABC Sprint 08ABC-9312023
ABCABC Sprint 08ABC-9322023
ABCABC Sprint 08ABC-9342023
ABCABC Sprint 08ABC-9352023
ABCABC Sprint 08ABC-9372023
ABCABC Sprint 08ABC-9132023
ABCABC Sprint 08ABC-9152023
ABCABC Sprint 08ABC-8952023

 

I want to get the TOTAL_INSPRINTBUGS_SPRINTWISE and include ISSUE_KEYS in single row seperated by comma speint wise.

Just like the below table

PROJECT_KEYSPRINT_NAMEISSUE_KEYYEARTOTAL_INSPRINTBUGS_SPRINTWISE
ABCABC Sprint 01ABC-390,ABC-39220222
ABCABC Sprint 02ABC-436,ABC-437,ABC-43820223
ABCABC Sprint 03ABC-463,ABC-47720222
ABCABC Sprint 07ABC-857,ABC-85820222
ABCABC Sprint 08ABC-931,ABC-932,ABC-934,ABC-935,ABC-937,ABC-913,ABC-915,ABC-89520238

 

I am trying to do this since later i can generate Rolling average of Insprint bugs sprint wise and also Drill through to show the ISSUE_KEYS that were reported in particular sprint.

Please help how this can be done.

4 ACCEPTED SOLUTIONS
amustafa
Super User
Super User

This can be done in Power Query much easier. Here's the M Code.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jc47CoAwEATQq4TUCsluvqV6BMuQA9iIiPdHJRG7ZJplBh7MpiSneZHDe8V6nNt+CaVLHzmqJ5EiknloQ2pDqtCwQ6FHYWhD/qBjEPrOtK8wWBh2fgwVRtYFchcSCg0KLQo9CDWjEJwO8Yf5Bg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [PROJECT_KEY = _t, SPRINT_NAME = _t, ISSUE_KEY = _t, YEAR = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"PROJECT_KEY", type text}, {"SPRINT_NAME", type text}, {"ISSUE_KEY", type text}, {"YEAR", type text}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"PROJECT_KEY", "SPRINT_NAME", "YEAR"}, {
        {"ISSUE_KEY", each Text.Combine([ISSUE_KEY], ","), type text},
        {"TOTAL_INSPRINTBUGS_SPRINTWISE", each Table.RowCount(_), Int64.Type}
    })
in
    #"Grouped Rows"

 

 

Results:

 

amustafa_0-1733990887246.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

JeevanMallya
Resolver II
Resolver II

Thank you very much

View solution in original post

JeevanMallya
Resolver II
Resolver II

Thank you very much

View solution in original post

Hi @JeevanMallya, please consider to accept the correct reply as solution.

 

 

 

I hope this helps! 
If you found this answer helpful:
✔️ Mark it as the solution to help others find it faster.
 Give it a like to show your appreciation!

Thank you for contributing to our amazing Power BI community! 

View solution in original post

6 REPLIES 6
Kedar_Pande
Community Champion
Community Champion

@JeevanMallya 

Create a Calculated Table

SummarizedTable =
SUMMARIZE(
'Table',
'Table'[PROJECT_KEY],
'Table'[SPRINT_NAME],
'Table'[YEAR],
"ISSUE_KEYS", CONCATENATEX('Table', 'Table'[ISSUE_KEY], ","),
"TOTAL_INSPRINTBUGS_SPRINTWISE", COUNT('Table'[ISSUE_KEY])
)

Create measure:

Rolling_Average =
CALCULATE(
AVERAGE(SummarizedTable[TOTAL_INSPRINTBUGS_SPRINTWISE]),
DATESINPERIOD(SummarizedTable[SPRINT_NAME], MAX(SummarizedTable[SPRINT_NAME]), -3, MONTH)
)

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

If this helped, please give Kudos or mark it as a Solution .
Best regards,
Kedar
Connect on LinkedIn
JeevanMallya
Resolver II
Resolver II

Thank you very much

Hi @JeevanMallya, please consider to accept the correct reply as solution.

 

 

 

I hope this helps! 
If you found this answer helpful:
✔️ Mark it as the solution to help others find it faster.
 Give it a like to show your appreciation!

Thank you for contributing to our amazing Power BI community! 
JeevanMallya
Resolver II
Resolver II

Thank you very much

Bibiano_Geraldo
Resident Rockstar
Resident Rockstar

Hi @JeevanMallya ,

You can achieve the desired result by following this steps:

 

1- Use the following DAX measure to create a concatenated string of ISSUE_KEY sprint-wise:

ISSUE_KEYS_SPRINTWISE = 
CONCATENATEX(
    FILTER(
        'YourTable',
        'YourTable'[SPRINT_NAME] = MAX('YourTable'[SPRINT_NAME]) &&
        'YourTable'[PROJECT_KEY] = MAX('YourTable'[PROJECT_KEY])
    ),
    'YourTable'[ISSUE_KEY],
    ","
)

 

2- Create a measure to count the total issues in each sprint:

TOTAL_INSPRINTBUGS_SPRINTWISE = 
COUNTROWS(
    FILTER(
        'YourTable',
        'YourTable'[SPRINT_NAME] = MAX('YourTable'[SPRINT_NAME]) &&
        'YourTable'[PROJECT_KEY] = MAX('YourTable'[PROJECT_KEY])
    )
)

 

3- Now you can create a table visualization with the following columns: PROJECT_KEYSPRINT_NAMEISSUE_KEYS_SPRINTWISEYEARTOTAL_INSPRINTBUGS_SPRINTWISE.

 

Your final output should look like this:
Bibiano_Geraldo_0-1733992034610.png

 

 

I hope this helps! 
If you found this answer helpful:
✔️ Mark it as the solution to help others find it faster.
 Give it a like to show your appreciation!

Thank you for contributing to our amazing Power BI community! 
amustafa
Super User
Super User

This can be done in Power Query much easier. Here's the M Code.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jc47CoAwEATQq4TUCsluvqV6BMuQA9iIiPdHJRG7ZJplBh7MpiSneZHDe8V6nNt+CaVLHzmqJ5EiknloQ2pDqtCwQ6FHYWhD/qBjEPrOtK8wWBh2fgwVRtYFchcSCg0KLQo9CDWjEJwO8Yf5Bg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [PROJECT_KEY = _t, SPRINT_NAME = _t, ISSUE_KEY = _t, YEAR = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"PROJECT_KEY", type text}, {"SPRINT_NAME", type text}, {"ISSUE_KEY", type text}, {"YEAR", type text}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"PROJECT_KEY", "SPRINT_NAME", "YEAR"}, {
        {"ISSUE_KEY", each Text.Combine([ISSUE_KEY], ","), type text},
        {"TOTAL_INSPRINTBUGS_SPRINTWISE", each Table.RowCount(_), Int64.Type}
    })
in
    #"Grouped Rows"

 

 

Results:

 

amustafa_0-1733990887246.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.