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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Spigaw
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:

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 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?

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors