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
SammyBM
Frequent Visitor

DAX How to Return words in reverse order

Hi 

I have an issue when data is imported from SQL - for example;

I have product description name : 
 BF-12 Fully lugged valve 10"

 

but on power bi its shows like that:

12 Fully lugged valve 10 -BF

 

how can i fix it in power bi show like the original ? 

 

 

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @SammyBM 

You can transform the data using Power Query, but splitting in separate columns by the occurence of "-" and then then merging the columns in your required order.  These can all be done by clicking ribbons in Power Query.  

DataNinja777_0-1715423163244.png

Best regards,

Yeah I thought of that but there hundereds of items not all of them with the same sign - .
I need to revererse the words order in the sentance. 

Hi, @SammyBM 

If the data has been modified after import, you can use the Power Query Editor to fix it. Open Power BI Desktop and click Convert Data on the left to access the Power Query Editor.
Locate the table containing the Product Description field and click on the field header to open its properties.
In the Format or Data Type section, make sure it's set to text (if it was originally text).
If the data format is still incorrect, you can try to fix it by writing a custom conversion step using the M Query Language. For example, you can use the Text.Combine or Text.Transform functions to recombine or format the text.

 

Best Regards,

hackcrr

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors