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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PrivateAnalytic
Helper IV
Helper IV

Changing the format of values

Hello everyone! I am looking to append 2 queries in Power BI. I am appending an ID for each of the tables (no issues with that at all), and then a name. I have a question though.

 

One of the queries I am appending has the name formatted like so:

JohnDoe.


Where as the 2nd query has the name formatted like this: 

Doe, John

 

Is there a way that I can somehow change the way one of these names are formatted? So that I can not have duplicate names on my name slicer of the dashboard?

1 ACCEPTED SOLUTION
edhans
Super User
Super User

No. You will need to pre-split the first list so it is John Doe and the second so it is Doe John - all in separate columns, then merge the columns back in the correct order. 

 

For the first transformation select the column, go to Transform, then select Split Column, and select from Lower to Upper Case. 

edhans_0-1658440174836.png

It becomes this

edhans_1-1658440198432.png

If you want it to be Lastname, FirstName, then just merge those:
Select Column1.2 first, then Column1.1, then on the Transform ribbon, Merge Columns, then use this setting:

edhans_2-1658440307281.png

It becomes this:

edhans_3-1658440343616.png

The problem will be with names that have multiple case transitions. JohnDoe is simple. JeffMcAllister is not. It will get split into 3 columns.

 

 

 



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

2 REPLIES 2
Anonymous
Not applicable

Hi


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

edhans
Super User
Super User

No. You will need to pre-split the first list so it is John Doe and the second so it is Doe John - all in separate columns, then merge the columns back in the correct order. 

 

For the first transformation select the column, go to Transform, then select Split Column, and select from Lower to Upper Case. 

edhans_0-1658440174836.png

It becomes this

edhans_1-1658440198432.png

If you want it to be Lastname, FirstName, then just merge those:
Select Column1.2 first, then Column1.1, then on the Transform ribbon, Merge Columns, then use this setting:

edhans_2-1658440307281.png

It becomes this:

edhans_3-1658440343616.png

The problem will be with names that have multiple case transitions. JohnDoe is simple. JeffMcAllister is not. It will get split into 3 columns.

 

 

 



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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.