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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Split one row in two or more

Hi Family,

 

I have a Sales table with a column of terms payments, as you can see below:

tahar1407_0-1624463784655.png

 

o 50 * SD * 10 means that the calculated DueDate is equal to “Ship Date” + 10 and that the amount to be paid is 50% of the amount of the line

o 50 * SD * 60 means that the calculated DueDate is equal to " Ship Date " + 60 and that the amount to be paid is 50% of the amount of the line

 

So if I have a purchase of $ 150,000 with this payment term and a " Ship Date " = 2021-06-01, we should find in the model of two purchases

  • $ 75,000 payable on 2021-06-11 (50% 10 days later than Ship Date)
  • $ 75,000 payable on 2021-07-30 (50% 60 days later than Ship Date)

 

Importantly, the original line of $ 150,000 should no longer be there or no longer counted. We could keep it by changing the amount payable to $ 0, so nothing to pay.

 

My question is, how can I split the original row in two (or more in another case)?  


Thank you all 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,
Sorry for the delay but I was very busy with this issue.
The problem is I want to split a ROW not a column and that is not possible with Power BI.
I tried a lot of ways and manners but it doesn't work and my report is so complicated.
I decided to split what I need on SQL than in Power BI.
Thank you all 🙂

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I am not very clear about your split logic. For your description, I think it can be extracted and splited in power query.as follows:

1.Add a custom column.

=Text.Select([strTerm],{" ".."9"})

vyalanwumsft_0-1624606417418.png

2.Write a formula

if not Text.Contains([Custom], "%") then " "&[Custom] else [Custom]

vyalanwumsft_1-1624606476977.png

3.split column

vyalanwumsft_2-1624606540342.pngvyalanwumsft_3-1624606554473.png

The final output is shown below:

vyalanwumsft_4-1624606682579.png

If this is not correct, can you share the following screenshot of the result you want to output and the logic of your split?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,
Sorry for the delay but I was very busy with this issue.
The problem is I want to split a ROW not a column and that is not possible with Power BI.
I tried a lot of ways and manners but it doesn't work and my report is so complicated.
I decided to split what I need on SQL than in Power BI.
Thank you all 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.