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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Consolidate Values from unknown # of columns (JIRA Sprint Reports)

Hello - I'm trying to create a Power BI report based on data from JIRA (specifically Star JIRA, but that's likely not relevant).  For anyone not familiar, JIRA is used to track software development requests.  As a request is worked through, its put into a "sprint" which is a 2-3 week development cycle.  Sometimes a request will be pushed back to the next sprint, or the one after, etc., until it's completed.

 

In the reports extracted from JIRA, the sprint field will show every sprint that a particular request was part of, until it was completed.  So the # of sprint columns can vary each time the report is run (Sprint columns = max number of sprints for any of the requests in the report).  

The first time the report us run, it might look like this:

 

Issue KeySprintSprintSprintSprint
ES_1Sprint72Sprint73  
ES_2Sprint68   
ES_3Sprint71   
ES_4Sprint71Sprint72Sprint73Sprint74

 

But then if ES_5 is added the next time the report is run and it was in more sprints, the report would be:

 

Issue KeySprintSprintSprintSprintSprintSprintSprintSprintSprint
ES_1Sprint72Sprint73       
ES_2Sprint68        
ES_3Sprint71        
ES_4Sprint71Sprint72Sprint73Sprint74     
ES_5Sprint73Sprint74Sprint75Sprint76Sprint77Sprint78Sprint79Sprint80Sprint81

 

I need the report to capture the Max (last) sprint for each issue, but I don't know how to handle the fact the # of columns could change each time. 

 

Please help!

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

In the query editor, unpivot all except the Issue Key column.

AlexisOlson_0-1660409125434.png

 

The result will be a table with a constant number of columns:

AlexisOlson_1-1660409230907.png

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

In the query editor, unpivot all except the Issue Key column.

AlexisOlson_0-1660409125434.png

 

The result will be a table with a constant number of columns:

AlexisOlson_1-1660409230907.png

Anonymous
Not applicable

Thanks very much, this worked perfectly.  After unpivoting I was able to filter for just the "Sprint" headers/values, buffer + sort by Sprint # and then remove duplicates to only leave the Max value.  Once that's done I can merge the value back into the initial data set.

 

Cheers!

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors