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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors