The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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]
Commercial activities:
Orders:
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
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.