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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
brisacisneros
New Member

Pivoting Columns with Duplicate ID and Date

Hi everyone,

I'm having trouble pivoting columns in Power Query when I have duplicate IDs and dates in my data. My goal is to have one row for each unique combination of ID and date, with the corresponding hours in separate columns.

Here's a sample of my data:

 

brisacisneros_0-1738266319654.png

My goal is to have this structure

brisacisneros_1-1738266434738.png

 

1 ACCEPTED SOLUTION

Hi @brisacisneros,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if your issue is resolved? or let us know if you need any further assistance.
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @brisacisneros,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As suggested by @lbendlin could you please provide the sample data of your issue. So that it will be helpfull to narrow down the issue and provide you the best solution possible.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @brisacisneros,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if your issue is resolved? or let us know if you need any further assistance.
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Omid_Motamedise
Super User
Super User

After using Pivoting, in the setting use sum operation, then in the result formula in the formula bar, replace List.Sum with each _{0} will solve your problem.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors