Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper II
Helper II

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!

Helper II
Helper II

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!

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?





Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors