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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Spigaw
Helper III
Helper III

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

Hello !

I have the following data:

Spigaw_0-1648739198013.png

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

Spigaw_0-1648739576316.png

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 2
Spigaw
Helper III
Helper III

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?

 

Ta,

 

Pete



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

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.