Power Query and Power Pivot to Automate FIFO calculations in Excel | DAX | Querinfer

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 187

  • @muhammadkamranali3586
    @muhammadkamranali3586 3 ปีที่แล้ว +7

    Thanks bro. This is really a great video and is directly related to many of us. Thanks a lot for making this video and helping. I am going to apply it Inshaallah.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +4

      Thanks Kamran
      I am really happy to help. Stay tuned as on 24th Feb i will publish another with same solution using PowerBI. That will be more interesting and fun.

    • @mbusoharvey2447
      @mbusoharvey2447 3 ปีที่แล้ว

      @@Querinfer Is the power bi version out yet?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Not yet

    • @shylomathew
      @shylomathew 2 ปีที่แล้ว

      How will we have Remaining Shares of 400 on 1st Oct, 300 on 2nd etc..?

    • @Wrc650
      @Wrc650 ปีที่แล้ว

      ​@@QuerinferHi,I am trying to build a same concept of FIFO but in accounts receivable,so where we get to know working capital..am little confused on the formula,can i send an email?

  • @augustorachitoff3473
    @augustorachitoff3473 ปีที่แล้ว +1

    THANK YOU! Probably the only video explaining how to do this properly. A bit complex but does solve the problem.

    • @Querinfer
      @Querinfer  ปีที่แล้ว

      I am happy that you liked this video. My objective was to solve the problems.

  • @firmaevents9594
    @firmaevents9594 ปีที่แล้ว +1

    I was crying to find the asnwer online and i camr across yoy. Thank you alot and keep posting new things

    • @Querinfer
      @Querinfer  ปีที่แล้ว

      Great! You found it wonderful 👍

  • @Negruchina2010
    @Negruchina2010 10 หลายเดือนก่อน +1

    Thank you my friend, it's a very challenging excercise but it works. Regards from Bogotá, Colombia.

    • @Querinfer
      @Querinfer  10 หลายเดือนก่อน

      My pleasure dear!

  • @nielsotten8397
    @nielsotten8397 2 ปีที่แล้ว

    Thank you
    it is an icebreaker for many who struggle with traceability and data cleaning in the direction of the block chain. a wild solution with a very nice is presented

  • @TaifoorAhmed-v9c
    @TaifoorAhmed-v9c ปีที่แล้ว +1

    Absolutely lived it. Thanks for putting in the effort. Regards.

    • @Querinfer
      @Querinfer  ปีที่แล้ว

      My pleasure dear

  • @kanidarck
    @kanidarck 2 ปีที่แล้ว +1

    Thank you for your help. Very useful video. Complicated subject turned into easy steps to understand

    • @Querinfer
      @Querinfer  ปีที่แล้ว

      Thanks that was my target 🎯

  • @aesc13
    @aesc13 3 ปีที่แล้ว +1

    Thanks! I’ve looking for this solution for months. Everything is cristal clear and I just learned new DAX formulas I never used before.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thank you Andrea! It is an honour for me

  • @FarhanAli-sd9fg
    @FarhanAli-sd9fg 3 ปีที่แล้ว +3

    I was working on a similar project for days and i too had the idea of using index column. But your work around of using Group By on Index column is next level. Keep up the good work.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Thank you so much Farhan... This is just about implementing in practical scenario...

  • @pprathamesh
    @pprathamesh 3 ปีที่แล้ว +2

    Amazing! I had programmed this in SAS, but it's great to know that it can be done in Excel... thanks a lot!

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks Pathak for this

  • @techmaster478
    @techmaster478 ปีที่แล้ว +1

    you are from other world, great job👏

  • @karanbirsoin9983
    @karanbirsoin9983 3 ปีที่แล้ว

    Superb outcome of a very vexing requirement. You are the Master in this……

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Karanbir dear!
      Thank you so much for your praises and appreciation.🥰

  • @karanbirsoin9983
    @karanbirsoin9983 2 ปีที่แล้ว +1

    Superb rendition of a very time consuming task at the end of the year….

    • @Querinfer
      @Querinfer  2 ปีที่แล้ว

      Thank you Karanbir for appreciation

  • @mohamedaboobackersiddique7322
    @mohamedaboobackersiddique7322 3 ปีที่แล้ว +1

    Thank you so much for your support.This is what I was searching for.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks Abubakar

  • @davidtomasgaitanrodriguez1356
    @davidtomasgaitanrodriguez1356 ปีที่แล้ว

    Best excel video ever, showing so many complex and easy concepts. Thank you very much for the time it took to explain THIS PERFECTLY how to implement in such an easy manner one quite complex problem.
    One more subscriber to you :)

    • @Querinfer
      @Querinfer  ปีที่แล้ว +1

      Thanks David!
      This is an amazing feeling when you serve your community.

  • @bilalzafar4004
    @bilalzafar4004 4 ปีที่แล้ว +3

    Excellent video on power query

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks a lot

  • @ankjg
    @ankjg 4 ปีที่แล้ว +3

    Mashalllah doing a great job.

    • @Querinfer
      @Querinfer  4 ปีที่แล้ว

      Thanks Ahmad bhai

  • @Belakavadi
    @Belakavadi 3 ปีที่แล้ว +1

    Excellent solution. Thanks

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Krishna thanks for your praise.

  • @manojchakerwarti
    @manojchakerwarti 3 ปีที่แล้ว +1

    Thanks a lot big brother. I was struggling for the same and you have given me. Thanks to you from bottom of my heart.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Manoj I am happy that it helped ☺️

  • @adhirajmukherjee8455
    @adhirajmukherjee8455 2 ปีที่แล้ว

    Brilliant!. Thanks a lot. Will find a way to simplify this.

  • @dogaclamasacmalik
    @dogaclamasacmalik ปีที่แล้ว

    I will write Turkish. Please translate brother.
    Çok teşekkür ederim bu çalışma için. Şuan kullanıyorum. Yatırım fonları ile ilgili bir sayfam var. Oradaki kullanıcılar için portföylerini takip edebilecekleri bir excel oluşturdum ve senin yöntemini kullandım. Allah senden razı olur inşallah. Türkiye'ye gelirsen beni bul 😊

  • @stevefabian3622
    @stevefabian3622 2 ปีที่แล้ว

    OMG. This was awesome. The effort you took to make this video was also perfect. Well done, sir. You just elevated my Excel knowledge 10 fold. Thanks again!!!

  • @hanytohamy6362
    @hanytohamy6362 3 ปีที่แล้ว

    it's very very important lesson I was looking for it, many thanks.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Really happy to hear this, there are tutorials online but application in real life scenario is needed..

  • @mdexcelpro8495
    @mdexcelpro8495 2 ปีที่แล้ว

    Assalamualaikum warahmatullah great learning for me thanks of lot

  • @pettengcalemot6800
    @pettengcalemot6800 3 ปีที่แล้ว +2

    Thank you for this tutorial. This is exactly what I was looking for. It would be perfect if you would expand this with tutorial on how to connect this table with another trading journal table in power pivot to we can create dynamic trading journal linked to this table. Thank you in advance.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Idea well taken. Infact I wanted to keep it simple to a single table so that we could focus on solution. But the same can be done using datamodel with multiple tables...

    • @pettengcalemot6800
      @pettengcalemot6800 3 ปีที่แล้ว

      @@Querinfer Thank you for your response

  • @muhammadsaqibaslam24
    @muhammadsaqibaslam24 4 ปีที่แล้ว +2

    Good job Saleem 👍

    • @Querinfer
      @Querinfer  4 ปีที่แล้ว

      Thanks Saqib bhai

  • @imranshehzadbutt
    @imranshehzadbutt 4 ปีที่แล้ว +2

    Very useful jazak Allah

  • @mfaisalawan
    @mfaisalawan 4 ปีที่แล้ว +3

    good informative Video, keep it up.

    • @Querinfer
      @Querinfer  4 ปีที่แล้ว

      Thanks a lot for appreciation!

  • @nazshk187
    @nazshk187 4 ปีที่แล้ว +3

    Nice video and explanation

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Glad you liked it

  • @xtijerina
    @xtijerina 3 ปีที่แล้ว +2

    Thank you for sharing this video. I love the automation with Power Query. Do you have videos on Last in First Out and Highest In First Out? I would love to see a comparison video of the 3 methods using Power Query and Power Pivot.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Not yet, but that is surely a good idea for my next video

  • @vadnerepravin
    @vadnerepravin ปีที่แล้ว

    Very nice and informative video, can you make further to calculate short term capital gain and long term capital gain share which we sold. Egarly waiting your response. Thank you very much 🙏

  • @muhammadnadeem716
    @muhammadnadeem716 3 ปีที่แล้ว +3

    Good Job........Great Going....Keep it Up❤❤❤💥💥💝

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks brother!

  • @devenarnold9908
    @devenarnold9908 11 หลายเดือนก่อน +2

    I would like to track what buying lot is the selling transaction associated with. The problem I see is the selling transactions would need to be split up in some cases. Your first fifo example showed allocations to different lots but the actuall selling transactions in your data doesn't split the sells like that. How would you ensure the sells are split correctly in your transaction data?

  • @sajadabdulcader5337
    @sajadabdulcader5337 3 ปีที่แล้ว +1

    Very good one amd it could have had the mathematical method as to why we do each step

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Sajad thanks a lot for your feedback. Yes there may be a better method than this or a simpler one. I am looking for ways to simplify things as well as keep them understandable for new users of DAX. Will create a video once i find a better way.

  • @nikolaykeshkin8361
    @nikolaykeshkin8361 3 ปีที่แล้ว +4

    Great job, very useful! I've implemented this appoach for my dataset, works correct for the total base. But now I'm thinking on know to break the report by months, so I could compare monthly performance and etc.. I do understand that somehow the Cost of Sales should be shown in front of the every selling deal, but yet haven't solved how to do this.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Glad it was helpful Nikolay! Yes I also want to explore this further. I will try and do let me know if you found a solution to it.

    • @nikolaykeshkin8361
      @nikolaykeshkin8361 3 ปีที่แล้ว +1

      @@Querinfer Yep, I guess I've found one. Can't share the calculation as I did it on my work computer, but in nutshell I did the following for every "sell" deal: 1. Made an Index for the beginning of the "buy deals" range, from which shares should be sold. 2. Calculate the number of shares, which has been sold allready (in previus "sale" deal) in the starting row of the range (Start_amount). 3. Found the price of shares for the starting row (Start Price). 4. Made an Index for the range end. 5. Calculate the amount of remaining shares in the last row of the range. (end amount). 6. Found the price for the ending row (end Price). 7. Finally, with sumX simply myltiplied Price and Quantity within previosly difined range, minus Start_amount*Start_price, minus End emount * end Price. So this is the cost of sale for every "sell" deal

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Hmmm thanks for sharing dear. I will try it myself for clarity

    • @nikolaykeshkin8361
      @nikolaykeshkin8361 3 ปีที่แล้ว +1

      @@Querinfer It would be easier with en Excel file, but with regard to our corporate security policy it’s impossible((
      Additional Columns I’ve calculated are “total buy”, total buy on previous date”, “total sale”, “total sale on previous date”, using the combination of them I’ve calculated all other columns I’’ve mentioned earlier. Maybe it would help u to make your own calculation)))

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Thanks a lot for elaborating!

  • @MoeezPeerwani
    @MoeezPeerwani 2 ปีที่แล้ว

    Thats great... how about doing it using weighted average method as the industry uses weighted average method for valuing its investments in shares... thanks

  • @pm30949
    @pm30949 10 หลายเดือนก่อน

    Thanks, this is very helpful, appreciate the effort put in. The Pivot tables give the cumulative gain to date, is there a way to split this by each financial year basis the date of sale?

  • @ТатьянаКравцова-ы2к
    @ТатьянаКравцова-ы2к 3 ปีที่แล้ว +3

    Thank you so much for your video! Is there an option for the cost of sales to be reflected on the date of sales?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      thanks for the comment. I will figure it out once I am done with my financial modeling series.

  • @mikeparker3865
    @mikeparker3865 ปีที่แล้ว

    A great solution!

  • @viveksomani376
    @viveksomani376 3 ปีที่แล้ว +2

    This is really a good explanation of building FIFO logic using excel. Thank you.
    What changes will need to be done if the logic is HIFO i.e. Highest Purchase Price goes out First. This would be helpful for reducing the tax liability.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thank a lot Vivek. I dont know if tax laws allow HIFO. However, for your question. FIFO is totally dependent on the dates for creation of index and it was simple as the date for a particular transaction never changes. HIFO will be complex as we cannot allow query to run on all of the lots accounted for tax purposes in previous years. I think your data first needs to be sorted w.r.t tax year (from date) and then w.r.t the purchase price of shares. Then you can create index for your items sorted in this manner. That is all i can think of

  • @surajkapure9300
    @surajkapure9300 ปีที่แล้ว

    Could you make a fifo basis on the order create date, and available stock. Also at last show closing inventory after allocation

  • @UMARFAROOQ-br8du
    @UMARFAROOQ-br8du 2 ปีที่แล้ว

    Mashallah!
    It's really awesome. I am learning to apply it for making a FIFO based inventory management of a small manufacturing company. If I need some help can you please guide me in building that

  • @Fanta26
    @Fanta26 3 ปีที่แล้ว +3

    Thank you for making this great video. I was able to follow and build this myself. One question I have is how do I ensure that the cost of sales is mapped to the row of the sales quantity? The reason I want to know the profit on each sale is to show the trending of P&L made each quarter. In the current model in your video, the purchases are tagged to the previous quarter while the sale is in the next quarter, thereby skewing the P&L review by quarter. Any way this can be fixed? Would greatly appreciate your insight. Thanks

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks a lot for writing to me. your feedback is really valueable and I am sure we can make a better working solution than this one as soon as I get time out of my ongoing series on financial modeling.

    • @0981232010
      @0981232010 2 ปีที่แล้ว

      I would also like to know how to do this! Did you ever figure out a solution to this problem? :)

  • @ShutnickDen
    @ShutnickDen 2 ปีที่แล้ว

    Hi man. You did really great job!!! I added life price from Coinmarketcap ... and connected it to main table in order see current value and price change in timescale. It would be great if you can make video for API connection from Bybit exchange in order get automatically list of filled orders

  • @venkatiyer7459
    @venkatiyer7459 3 หลายเดือนก่อน

    Very useful one .... In fact I have been just trying with Pivot and Filter functions but could not get the desired result .... thanks a lot...
    From the trade book whether we can arrange the columns as shown in your table with the help of power query ..?

  • @sajadabdulcader5337
    @sajadabdulcader5337 3 ปีที่แล้ว +1

    Also in practice we have the closing stock only in number thus calculate the CoGS and the value of each closing category. We don’t track the consumption rather it becomes the derived figure. How to set abt it ? Thanks

  • @YannickRBon
    @YannickRBon 3 ปีที่แล้ว +1

    SHKExcelWorld Thank you so much for this tutorial! It learned me many things and help me understand quite a lot. I'm now trying to adapt your template to my needs And I don't know how to do the last part i need. Would you mind helping me? I'll use the same terms as you did in your example: In my use case, the sale price of a share is defined when that share is purchased. So How do I tell excel that when I sell a share it should take into account the sale price that was defined when it was bought while still following the fifo, thus applying the earliest possible sale price of what's left in my inventory for that company share.
    Thank you for your help!

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thank you for your feedback. I know this project can help brokers, traders, store keepers and even accountants. and I definitely value your feedback to improve the current method. I will do it again, once i am done with my running financial modeling series.

  • @singhrps1
    @singhrps1 3 ปีที่แล้ว +1

    Very well explained video. You are really genius. I will go through all your videos one by one. Thanks lot for hard work you are doing for the society. Keep it up. Earlier, It was very difficult to calculate Capital gains to file the income tax returns. Still two things are not clear to me 1. How to calculate Capital gain Financial year - wise 2. How to bifurcate Long-term Capital Gain (LTCG)and Short Term Capital Gain(STCG). Will you please advise the changes need to be done?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks RP Singh for your lovely feedback. Yes I knew that the method is not fit for all, however, as a first step, it was great experience for me as well. I also want to remake it for better analysis, first I just want to finish up with my Financial modeling series.

    • @stevefabian1856
      @stevefabian1856 ปีที่แล้ว

      @@Querinfer Have you had a chance to revisit creating a FIFO model that RP Singh suggested?

  • @zdzislawkes
    @zdzislawkes 2 ปีที่แล้ว

    Thank you for a great solution and a great presentation. Way to go. Have you thought about using your idea in ordinary Excel? Without DAX and PQ?

  • @finnnguyen2386
    @finnnguyen2386 3 ปีที่แล้ว +1

    Thank you for such great help. Does this method require us to sort the date from oldest to newest?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Hi Finn! Well i believe you are absolutely right. I didn't do this, probably my table was already sorted :-) . Although, company level results will still be fine, however, if we use date filter to filter our results then this will definitely have an impact.

  • @zekingop
    @zekingop 2 ปีที่แล้ว

    You video was really helpful! How can I do if I want to use the LIFO version, I tried but didn't suceed... I also tried to calculate short terms and long term capital losses/gains but I don't seem to understand...

  • @kamaljagasia8673
    @kamaljagasia8673 2 ปีที่แล้ว +1

    Nice video 👍 but opening balance/stock column is missing. How to edit and add into above power query . ?

  • @vacilando86
    @vacilando86 ปีที่แล้ว +1

    Can you please do a Phase in Phase out study?

  • @francescadelger7681
    @francescadelger7681 ปีที่แล้ว

    To get the cost basis for each sales transaction, would there need to be another index for sales transactions? Also, If I want to add the date of sale, would I create a separate column in the original table? Thank you

  • @safeecma
    @safeecma 3 ปีที่แล้ว +1

    Salam,
    I was googling this issue and found your video. I found it very helpful but I am still looking for one more thing, that is sale date also to be included. In a manner as you shown in first few minutes intro of this full video.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Ok I will work on it and see the possibility as I myself am a student of DAX. Thanks for your feedback.

    • @safeecma
      @safeecma 3 ปีที่แล้ว +2

      @@Querinfer Salam Sir,
      Any hope 🙏

  • @jawad98pk
    @jawad98pk 4 ปีที่แล้ว +4

    nice beard style, which oil you are using?

    • @haiderkharl
      @haiderkharl 4 ปีที่แล้ว +1

      nice observation! its borges olive oil.. :-)

  • @katariasir.
    @katariasir. 8 หลายเดือนก่อน

    Hey it's really helpful. I need an addition to it. Can you help me with it?

  • @ideakarma7034
    @ideakarma7034 5 หลายเดือนก่อน

    Thank you for an awesome solution. Can you suggest what needs to be done to view the output for specific financial years? Thank you. @Querinfer

  • @besimperolli
    @besimperolli 2 ปีที่แล้ว

    AoA dear brother. First of all thank you for this wonderful video. I'd like to ask about your advice and help regarding the similar application but which can be used for multiple items of purchased product inventory.
    Many thanks.

    • @besimperolli
      @besimperolli 2 ปีที่แล้ว

      Plus the file links are completely different from these that you've shown on the video. :(

  • @zdzislawkes
    @zdzislawkes ปีที่แล้ว

    Am I right, I think the PrevIndex column can be calculated this way: Index - 1 ?

  • @AdnanAhmad7
    @AdnanAhmad7 3 ปีที่แล้ว +1

    Do you recommend a course to learn about Power Pivot and how to work with DAX formulas?

    • @Querinfer
      @Querinfer  2 ปีที่แล้ว +1

      You may start with PowerQuery course of Leila Gharani on udemy

    • @AdnanAhmad7
      @AdnanAhmad7 2 ปีที่แล้ว

      @@Querinfer Thank you Sheikh. I already started taking 'Business Intelligence w/ Power Pivot and DAX by Chris Dutton' 😎

  • @mmmzzz77
    @mmmzzz77 3 ปีที่แล้ว +1

    Thank you for this awesome video!
    Any idea about application of this FIFO calculation to be able to put average buy & sale price (and hopefully buy & sale date too), side by side columns in single row. Is it possible using power pivot?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Thanks Herman for liking this video...
      Yes I also want to achieve this but haven't figured out yet .. let's see in the coming days .

    • @BolajiBI
      @BolajiBI 3 ปีที่แล้ว +2

      @@Querinfer I just created a solution that works a few days ago using some tips from your video

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Great Bolaji. Would love to know the steps you used, maybe I can create a video on it

    • @mmmzzz77
      @mmmzzz77 3 ปีที่แล้ว

      @@BolajiBI I would love to know too
      Thanks in advance Sir

    • @BolajiBI
      @BolajiBI 3 ปีที่แล้ว

      @@Querinfer
      This is it. I put together something to explain it.
      www.linkedin.com/posts/bolajiolatunde_problemsolving-dax-powerbi-activity-6802042984142635008-YAiC

  • @officeusersguide7970
    @officeusersguide7970 2 ปีที่แล้ว

    Sir, how to calculate purchase lot wise average sales price in ur given data sheet?. I will awaiting ur reply, thanks in advance

  • @khanqureshi7764
    @khanqureshi7764 ปีที่แล้ว

    Good video... Wondering though on how to apply the FIFO on just one item. Like let's say salt having item code 001. Purchased 10 bags November 1st and 7 bags November 10th. Sold 13 bags and the cost of 1st 10 bags is 50 each while the later 7 bags costs Rs 45 each... Thanks

  • @karanbirsoin9983
    @karanbirsoin9983 2 ปีที่แล้ว

    I have prepared the automation as detailed by you Ji. In the table I have added three additional columns. One in the beginning is ISN No and two at the end Trade Charges and STT. When these charges and STT(Securities transaction tax) are appropriated the three measures will be different. Janab how to appropriate thes charges in your model?

  • @cheesepun
    @cheesepun 2 ปีที่แล้ว

    Thank you so much for the easiest possible explanation.
    Only issue with it , monthly total cost of sales aur monthly closing inventory ke figures incorrect aate hain

  • @kamaljagasia8673
    @kamaljagasia8673 2 ปีที่แล้ว

    Nice. But I need Date of purchases when shares cost is sold resulting in capital gains statement

  • @mbusoharvey2447
    @mbusoharvey2447 3 ปีที่แล้ว +1

    Is there a power bi version of this? I have a very large data set. How would one do this with power bi?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Dear Harvey! No I haven't created yet. But is doable easily

    • @mbusoharvey2447
      @mbusoharvey2447 3 ปีที่แล้ว

      @@Querinfer Great thanks. I am running out of memory in power bi trying to do "purchasestodate" calculation.

  • @venkatiyer7459
    @venkatiyer7459 หลายเดือนก่อน

    Sir I have a query whether we can directly apply FIFO calculation in excel instead of power query ..? if Yes, how ..?

  • @NJPANCHAL62
    @NJPANCHAL62 3 ปีที่แล้ว

    Thank you for such great explanation. it is very useful. In this if one want to know the absolute return and annual return on each sale on fifo based than it is not possible. Do you have any solution for this?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Dear I haven't experimented much further. Will surely try out

  • @chenakm
    @chenakm 3 ปีที่แล้ว +1

    the ad i watched is at least half hour than your video. unbelievable.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      I don't know how TH-cam is managing ads. But yes this video is really flying 😁. But this is a problem as well...

    • @chenakm
      @chenakm 3 ปีที่แล้ว

      @@Querinfer I am sorry as much as I like your video, I could not sit here watching the same ad playing within 5 mins. it's not productive.

  • @shekharshrestha4072
    @shekharshrestha4072 3 ปีที่แล้ว +2

    Hi there, Thanks for the video. However, this module didn't work for me as it assumes that Shares purchase to date does not exceed Total Sales. For example, if we had bought 700 shares on 2nd of October, then shares purchased to date will be 800 on 2nd row and Remaining Shares would be 0. Is there a workaround to that ?
    Your help will be appreciated.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Let me check and get back to you

    • @shekharshrestha4072
      @shekharshrestha4072 3 ปีที่แล้ว

      @@Querinfer thanks! will be waiting

    • @YannickRBon
      @YannickRBon 3 ปีที่แล้ว

      I find myself in the same situaton where my TotalSales are most of the time lower than my SharePurchasedToDate so the calculation in the RemShares is mostly wrong since it shows 0 rather than the actual correct remaining number.
      Maybe instead of 0 I should put: [SharePurchaseToDate]-[TotalSales] ?

  • @sharadpunita
    @sharadpunita 19 วันที่ผ่านมา

    Thanks for this great FIFO solution. It really works but there is one problem. If you try to check sale , balance or profit by period (how much profit in 2024) we get a wrong result. Probably because we are dealing with Totalsales instead of each sale as separate transaction.
    Thank you again

  • @adhirajmukherjee8455
    @adhirajmukherjee8455 ปีที่แล้ว

    how to find aversge price of remaining shares for each date and security?

  • @faizanmazharsyed7668
    @faizanmazharsyed7668 3 ปีที่แล้ว

    Brother If have only one shares table and I want to apply mentioned format for FIFo and this table what things which I should skip in making computation table.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Faizan I have also used a single table, so what different are you saying?

  • @Saeed_Rana
    @Saeed_Rana 11 หลายเดือนก่อน

    السلام علیکم
    Can you calculate Outstanding Balance of a customer on fifo method for a given period in brackets i.e., 0-30, 31-60, 61-90, 91-120, 121-180 and above 180.

  • @jayaswalraj1987
    @jayaswalraj1987 2 ปีที่แล้ว +1

    A good video to demonstrate the FIFO method but unfortunately It did not work in my scenario. Let me know if I can share the details to you over the email so that you can incorporate that in coming videos as wel

    • @Querinfer
      @Querinfer  2 ปีที่แล้ว

      Yes please
      shkexcelworld@gmail.com

  • @shylomathew
    @shylomathew 2 ปีที่แล้ว

    How will we have Remaining Shares of 400 on 1st Oct, 300 on 2nd etc..?

  • @sonalgala5401
    @sonalgala5401 ปีที่แล้ว

    Suppose there’s an opening stock then how should the index be calculated

  • @AdnanAhmad7
    @AdnanAhmad7 3 ปีที่แล้ว

    I could not get past the step where you add the custom column, it throws an error. "Expression.Error: We cannot convert the value 1 to type Function.
    Details:
    Value=1
    Type=[Type]
    What could be the reason?

  • @gauravthosar593
    @gauravthosar593 2 ปีที่แล้ว

    I am trying to make a sheet to map Expected delivery dates & Qty. against sales orders from purchase order data. but I couldn't do it. Plz hel me.
    Purchase Data table having columns
    Item code
    Expected date
    Expected Qty.
    Sales Data table having Columns
    Sales Order No.
    Item code
    Qty req.
    Expected Date (to be mapped from Purchase table)

  • @Zafar-Ul-haq
    @Zafar-Ul-haq ปีที่แล้ว +1

    can we do this in google sheets

    • @Querinfer
      @Querinfer  ปีที่แล้ว

      I think there is no power query in Google sheets

  • @richcastline5332
    @richcastline5332 3 ปีที่แล้ว +1

    What version of Excel are you using?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Its office 365

  • @kundansinghpharswan
    @kundansinghpharswan 2 ปีที่แล้ว +1

    how to do this in google sheets?

    • @Querinfer
      @Querinfer  2 ปีที่แล้ว

      Will have to see if Google sheets any functionality like power query

  • @wrsktt
    @wrsktt ปีที่แล้ว

    Abandoned learning sumx filter function not working😢

  • @MUSTAFAALI-yf1rr
    @MUSTAFAALI-yf1rr 3 ปีที่แล้ว +1

    Salam.. Number convert into Word , Wo tou hogaya lekin - mai chahta hoon 15 - Fiteen only aaye ge hamara kaam bags, drums , ctn ka hain. - agar mai likho k 15 number - convert ho - in word mai - fiteen Drums Only - Its Possible

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Kya concatenate use Kia?

  • @kefayatullahmuhammadjalil2643
    @kefayatullahmuhammadjalil2643 3 ปีที่แล้ว

    in the case of day trading, if I buy today and sell back the same quantity today, the calculator goes crazy. Because these all calculation based on FIFO.
    It would be great if you could provide some calculations on this or make a small video.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว +1

      Ok I will recheck for this scenario

  • @gregjend3738
    @gregjend3738 3 ปีที่แล้ว

    Hi, great tutorial but I do not know why I cannot see the option "from table/range". Where can be a problem? So wright now I stuck in very beginnig of this video.

    • @gregjend3738
      @gregjend3738 3 ปีที่แล้ว

      I suppose that reason is on office version ;-/ what version you use tell me please? I have 2016.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      I am using office 365.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      However there will be an option in earlier versions. Will look into these

    • @gregjend3738
      @gregjend3738 3 ปีที่แล้ว

      I have 365 version at work so I will do a tutorial there. But I hope that after doing all tutorial I will be able to use this excel on older versions. What do you think?

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      You can use another Excel file to import data from another excel file in older version. But i feel that there will be a hidden option

  • @nileshemali
    @nileshemali 10 หลายเดือนก่อน +1

    Instead of excel please share same for Google sheet

    • @Querinfer
      @Querinfer  10 หลายเดือนก่อน

      Google sheets do not have Power Query and power Pivot. So thats the issue

    • @nileshemali
      @nileshemali 10 หลายเดือนก่อน

      @@Querinfer I know but any other method for Google sheet for fifo calculation for stock portfolio

  • @vikrantbhatigurjar2104
    @vikrantbhatigurjar2104 3 หลายเดือนก่อน +1

    Are You Gurjar ?

    • @Querinfer
      @Querinfer  3 หลายเดือนก่อน

      No, I am Kharal

  • @chenakm
    @chenakm 3 ปีที่แล้ว +1

    lol... i see more ad than your video.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      I hope the ad was interesting 🙂

    • @chenakm
      @chenakm 3 ปีที่แล้ว +1

      @@Querinfer i don't mind the ad, but the ad repeats several time until I am sick of watching your youtube. sorry, I don't have much time wasting watching repeated ads.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Thanks for your feedback. I will certainly check if the ads settings can be changed

  • @kefayatullahmuhammadjalil2643
    @kefayatullahmuhammadjalil2643 3 ปีที่แล้ว +1

    still awaiting for that changes it will help alot of stock member those who are using CDC RDA Account for shares in PSX.they dont have any report on that.
    If you can do that change ASAP it will be great.

  • @sudebmandal6803
    @sudebmandal6803 11 หลายเดือนก่อน

    SHORT SELL ,intraday ,AND FUTURE SHORT NOT WORKING , KINDLY WORK FOR THIS MATTER

  • @sudebmandal6803
    @sudebmandal6803 10 หลายเดือนก่อน

    Cripto currency decimal qty. Not showing, kindly work this.

  • @kefayatullahmuhammadjalil2643
    @kefayatullahmuhammadjalil2643 3 ปีที่แล้ว +2

    still awaiting for that changes it will help alot of stock member those who are using CDC RDA Account for shares in PSX.they dont have any report on that.
    If you can do that change ASAP it will be great.

    • @kefayatullahmuhammadjalil2643
      @kefayatullahmuhammadjalil2643 3 ปีที่แล้ว +1

      the issue was :::
      in the case of day trading, if I buy today and sell back the same quantity today, the calculator goes crazy. Because these all calculation based on FIFO.
      It would be great if you could provide some calculations on this or make a small video.

    • @Querinfer
      @Querinfer  3 ปีที่แล้ว

      Hi Kefayat! sorry for the late reply as I am currently busy with my financial modeling series. Yes with all of your feedback I also want to revisit the whole methodology to calculate and report more.

    • @kefayatullahmuhammadjalil2643
      @kefayatullahmuhammadjalil2643 3 ปีที่แล้ว +1

      @@Querinfer thank you sir, its will be a great pleasure for RDA accounts for PSX stocks, they don't have any application for us to calculate only you have create that but one you add the day trade also it will be a complete software of PSX for RDA calculation.