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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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.


If my answer helped solve your issue, please consider marking it as the accepted solution.
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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.