Forum Discussion

Spigaw's avatar
Spigaw
Helper III
4 years ago

Putting dates and data from the same two columns in different columns based on an ID

Hello !

I have the following data:

What I need to get is, for example for the first person :

I tried pivoting and depivoting columns as well as grouping and merging the request with itself, but no luck.


If anyone knows a way...

 

Thanks in advance!

2 Replies

  • I found a dirty way of doing it:

    • Duplicate the request
    • Group on minimum and maximum dates based on Matricule
    • Merging x2 to get the values of Coefficient majoration for the minimum and maximum dates

    I'm sure there is a way more efficient way of doing it!

    • BA_Pete's avatar
      BA_Pete
      Super User

      Hi Spigaw ,

       

      The real question is: Why do you want to do this? Your original data is in the most efficient structure for relational reporting.

       

      This looks like it might be the start of an XY Problem. Can you let me know what you're actually trying to achieve so we can work toward the best overall solution please?

       

      Ta,

       

      Pete