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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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