Skip to main content
Solved

Create column from row values and transpose Attribute values


iveline
Contributor
Forum|alt.badge.img+2

Hi,

 

I need help

 

I have this table 

ID Année Logements
20 2024 120
20 2025 210
20 2026 340

 

I would like to obtain this : 

 

ID Année_2024 Année_2025 Année_2026
20 120 210 340

 

Thank you so much for your help!

Best answer by hvukasinovic

You could achieve this using lists. Here is an example how it can be done, assuming that you don’t have large number of years to cover.
(Apart from ID=20, I added another feature with ID=21 that is missing record for 2026)
 

 

View original
Did this help you find an answer to your question?

3 replies

hvukasinovic
Contributor
Forum|alt.badge.img+13
  • Contributor
  • Best Answer
  • July 24, 2024

You could achieve this using lists. Here is an example how it can be done, assuming that you don’t have large number of years to cover.
(Apart from ID=20, I added another feature with ID=21 that is missing record for 2026)
 

 


hvukasinovic
Contributor
Forum|alt.badge.img+13

This approach might be even better as you don’t have to list all key/value pairs.

(workspace with both options is attached)
 

 


iveline
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 25, 2024

Thank you so much hvukasinovic, it works perfectly.🙏🏾


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings