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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jan_DK
Frequent Visitor

Get title from Azure DevOps 3 leves above

Hi

 

In Azure DevOps we are having a structure like this

 

Project 'ProjectTitle'

     Epic

        Feature

             Product Backlog Item 'PBITitle', 'PBIDescription'

 

I use Odata to grab data from WorkItems in Azure DevOps.

 

I would like to make a table that give's me the 'ProjectTitle', PBITitle', 'PBIDescription' in the same row as 3 diffent colums.

How do i do this?

 

Thanks ;o)

Br. Jan

 

 

 

1 ACCEPTED SOLUTION

Hi, @Jan_DK 

Yes, you need to New Column. you can refer to my DAX formula:

vfenlingmsft_0-1721983675162.png

 

New Column to be define =
SWITCH (
    TRUE (),
    'WorkItems'[Title] = "My first PBI", "My first project",
    'WorkItems'[Title] = "My second PBI", "My second project",
    BLANK ()
)

 

This is the result:

vfenlingmsft_1-1721983770951.png


I hope it will help you.

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-fenling-msft
Community Support
Community Support

Hi, @Jan_DK 

I am glad to help you.   

 

According to your description, you want to get title from Azure DevOps 3 leves above? 

  

If I understand you correctly, then you can refer to my solution.  

 

Since you didn't give me specific datasets to test, I assumed two scenarios myself and created some simple datasets to test, so I hope this helps. 

First scenario: 

First is to assume that ProjectTitle, PBITitle, PBIDescription are located in different tables: 

vfenlingmsft_0-1721809142751.png

 

vfenlingmsft_1-1721809142756.png

Then they should have a correspondence and the steps to implement this are as follows: 

After connecting to the data source, select the Projects table in the Power Query Editor and click Merge Queries: 

vfenlingmsft_2-1721809160838.png

 

After this step, click Expand Projects to get ProjectTitle, PBITitle, PBIDescription in the same row in different columns: 

vfenlingmsft_3-1721809160841.png

 

vfenlingmsft_4-1721809172897.png

  

  

Second scenario: 

Suppose your dataset is in this form: 

vfenlingmsft_5-1721809172902.png

Then you need to perform pivot operations, the specific steps are as follows: 

First you need to add the index column: 

vfenlingmsft_6-1721809195807.png

 

Then select Item column and click Pivot Column: 

vfenlingmsft_7-1721809195814.png

After this step you can get ProjectTitle, PBITitle, PBIDescription in the same row is located in a different column: 

vfenlingmsft_8-1721809211990.png

 

I hope these suggestions are helpful. If not, please share some data that has the same structure as your dataset. Please note that this data must not contain sensitive or private information. We will do our best to help you solve the problems you are experiencing. 

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 Hi Fen Ling,

Thanks for reply, you almost read my mind 🐵

 

A bit more information

My masterdata is in the same table but mixed in the same colums.

 

See example file attached where the tabel looks like this

Jan_DK_0-1721814030389.png

And i would like it to look like this where there mig should be a new coloum defined i guess?

Jan_DK_1-1721814287963.png

Example file 

 

 

Hi, @Jan_DK 

Yes, you need to New Column. you can refer to my DAX formula:

vfenlingmsft_0-1721983675162.png

 

New Column to be define =
SWITCH (
    TRUE (),
    'WorkItems'[Title] = "My first PBI", "My first project",
    'WorkItems'[Title] = "My second PBI", "My second project",
    BLANK ()
)

 

This is the result:

vfenlingmsft_1-1721983770951.png


I hope it will help you.

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks 🐵

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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