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
luismolle
Regular Visitor

Pivot Column to show both different values from same text, not sum

Hello,

not sure Im searching it in a wrong way, but I could not find anything related.

I have a column I want to pivot, but some text values are equal, and the result Im getting is a sum of both values from this same text values. Image below:

 

luismolle_0-1699907595438.png

 

In the case of the highlighted, Im having one column with a sum of the values, while the expectation is to have two column with both values. Everything else is working fine, the only thing is I want two columns when repeated "Column3" values appear under the same "Source Name" value,

 

tks

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Pivoting automatically groups when the text values are the same, and it also gets rid of nulls. For it to not combine, there needs to be another column that is unique for those records. For example, Lable D is duplicatged, but the dates are different.

edhans_0-1699921287556.png

 

when pivoted, I get this:

edhans_1-1699921321703.png

However, if I don't have unique dates, say that row 5 in the top table was also 1/4/2023, I get this error:

edhans_2-1699921374627.png

 

It is because there is a list of {4,5}  that it is trying not to aggregate (it uses List.Distinct) and it cannot get a distinct value for that cell, so it bombs.

 

You cannot get two column "D's" though. That makes no sense to Power Query. Or any other database.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Pivoting automatically groups when the text values are the same, and it also gets rid of nulls. For it to not combine, there needs to be another column that is unique for those records. For example, Lable D is duplicatged, but the dates are different.

edhans_0-1699921287556.png

 

when pivoted, I get this:

edhans_1-1699921321703.png

However, if I don't have unique dates, say that row 5 in the top table was also 1/4/2023, I get this error:

edhans_2-1699921374627.png

 

It is because there is a list of {4,5}  that it is trying not to aggregate (it uses List.Distinct) and it cannot get a distinct value for that cell, so it bombs.

 

You cannot get two column "D's" though. That makes no sense to Power Query. Or any other database.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.