Skip to main content
Solved

Create column from row values and transpose Attribute values

  • Jul 23, 2024 9:07 PM UTC
  • 3 replies
  • 203 views

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

hvukasinovic
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • Jul 24, 2024 3:59 PM UTC

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+18
  • Contributor
  • Jul 24, 2024 4:52 PM UTC

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
  • Jul 25, 2024 12:40 PM UTC

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