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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bilingual
Helper V
Helper V

Unpivot to ID, please help

I tried in vain, to create an index column, and then get my columns transformed to rows, i need all columns except ID to be transformed, so there is only one ID per row, can anybody help? 🙂 - file is attached.

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @bilingual 

 

If i understand correctly, you may create measures as below. The pbix file is attached in the end.

Travel From = 
CONCATENATEX(
    Travelservice,
    [From],
    ",
    "
)
Travel To = 
CONCATENATEX(
    Travelservice,
    [To],
    ",
    "
)

 

Result:

e1.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @bilingual 

 

If i understand correctly, you may create measures as below. The pbix file is attached in the end.

Travel From = 
CONCATENATEX(
    Travelservice,
    [From],
    ",
    "
)
Travel To = 
CONCATENATEX(
    Travelservice,
    [To],
    ",
    "
)

 

Result:

e1.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

PhilipTreacy
Super User
Super User

Hi @bilingual 

You have multiple rows of data for soem ID's.  What do you wantto do with these rows?  if you only want 1 row per ID, what rows do you keep?

idrows.png

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi Phillip, i need a separate column for each unique value and Date. 

 

The reason is that i need to to see the total travel segments per day for each ID, and it is not workable in rows, if you have a better suggestion, i am all willing to hear.

bilingual
Helper V
Helper V

I can not attach the file, but i have copied the dropbox link:

 

https://www.dropbox.com/s/kjvpsfe4ztzkbhl/PowerBI%20-%20travel.pbix?dl=0

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors