Forum Discussion

JdL_EL's avatar
JdL_EL
Frequent Visitor
2 years ago
Solved

Appending columns from same table in PowerBI Query

Hi all,

 

I need your help again :-).

While wondering around this forum I couldn't find a solution... So I hope you can help me out here.

 

I have different tables with the same problem, but they cannot be changed, so I need a uniform solution within PowerBI.

My issue is as follows.

The data in my tables is organized in the following order:

 

TitelInformationDate 1Value 1Value 2Date 2Value 3 Value 4
xxxxxSome text01/01/20231234504/04/202646345
yyyyyMore text02/03/20241443502/12/201965453
zzzzzEven more02/05/20235134512/05/202078875
aaaaaLess…01/12/197924419/09/2024673
bbbbbAnd some other23/05/198553512/12/201523423

 

As you can see, the first columns contain data and general information.

After those, I have a frequency of repeating columns (date - value - value). In the example I made two cycles, but it can go up to 5.
To make the data workable, I need the above data to be organized as follows.

 

TitelInformationDateValueValue
xxxxxSome text01/01/202312345
yyyyyMore text02/03/202414435
zzzzzEven more02/05/202351345
aaaaaLess…01/12/1979244
bbbbbAnd some other23/05/1985535
xxxxxSome text04/04/202646345
yyyyyMore text02/12/201965453
zzzzzEven more12/05/202078875
aaaaaLess…19/09/2024673
bbbbbAnd some other12/12/201523423

 

As it are multiple columns where date need to stick with their values, I struggle with the steps to take to make this connection.

Hope you can help me!

 

Thanks in advance!

2 Replies

  • search the forum for "unpivot column groups".

  • JdL_EL's avatar
    JdL_EL
    Frequent Visitor

    Thanks lbendlin ,
    This helps a lot as I see quite some similar requests!
    Thanks for pointing me in the right direction; I will certainly find a solution here! 💪