Power query % help

lokou90

New Member
Joined
Dec 2, 2020
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
Good morning,

I am writing to you because I am completely blocked ! I have an array with formulas in Power Query ! The principle is simple :

Get the difference between "cash buy (achat comptant)" and "cash sell(vente comptant)" values ! There is a file in history and a graph.

I would like to add columns, like the following ↓ ;

- A column with the percentage of gain or loss.

- A column with the number of days elapsed or hours if it is less than one day since the purchase and resale.

- A column that calculates me the profit made in the day between the date of purchase and resale.

As in this picture ↓

1606931934022.png


there may be multiple purchase/resale movements for the same value and at the same date. If a value is purchased, it is not required to be sold yet.


The four columns does not work very well it seems to me ! I can't seem to load with more than 200 lines


1606932696811.png


Files exemples

I can't put the formulas back in Power Query, if someone can kindly help me, it would be really great !!!
 

Attachments

  • 1606932075432.png
    1606932075432.png
    14.6 KB · Views: 10
as I said this is not my language
if you want more info about Power Query read this
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I am unable to fix this problem, it is the FIFO it seems to me... (First In First Out). Is anyone here able to understand my problem ? ????
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top