Forum Discussion

Troyes's avatar
Troyes
Frequent Visitor
6 years ago

Reshape data in Power Query

Hi All,

 

I have the data in the tabular mode in the left side and want to convert to the data in the right side.

 

Is is possible to achieve this in Power Query?

 

 

 

 

Thanks!

4 Replies

  • Troyes any reason why you want to share your data the way you described? You can achieve the same using matrix visual and your data seems to be in good shape.

    • Troyes's avatar
      Troyes
      Frequent Visitor

      Hi parry2k,

       

      My desired result is to calculate all the possible combinations in one Sport package and when I filter each Sport Type, I will get the number of player combination.

       

      Below is an example, if I choose Basketball-1, Football-1 and leave Volleyball blank, I will get the combination of Basketball and Football, and the number of the Sport package is 1.

       

      Currently I can only figure out the way by changing the data strucure, is there any possibilities to get the result creating measures in PBI? 

       

  • Hi,

    Why should there be 11 rows of data in the reshaped dataset?  Why not just the first 4 rows?

    • Troyes's avatar
      Troyes
      Frequent Visitor

      Hi Ashish,

       

      The goal is to get all the possible player combinations in one sport package, and I can choose any player in the filter panel to get the unique package qty.