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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Estebanco
Frequent Visitor

How to separate one type of data in two type in the same column

Hello community!

I've been eating my head all day to figure this out, I don't know if it's something very complex or I just haven't found the key, I have some peculiar data and I'd like to see if you can help me.

This is my data model:

Where have the following relationship:
Calendar[Date] 1 -> * Commercial activities[Date]

Calendar[Date] 1 -> * Orders[Order date]
Estebanco_4-1689097206564.png


Commercial activities:

Estebanco_1-1689097077167.png

Orders:

Estebanco_3-1689097167424.png


I want to know if there is any way to separate on the table "Commercial activities" the campaign "1+2" into "1" on one side and "2" in the other and transform campaign "5" in campaign "1" or "2".

I want use the "Type" found in "Orders", assuming that if it is type "0" it belongs to campaign "1" and if it has type "1" that belongs to campaign "2", and the same for campaign "5" assuming that if the order is type " 0" belongs to campaign "1" and if it is type "1" it belongs to campaign "2".

Best regards,
Esteban

1 REPLY 1
lbendlin
Super User
Super User

Data cleanup and transformation is best done at the source or in Power Query.  You can split columns by delimiter (in your case the "+" sign), and split into new rows.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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