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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors