Sum of Current, Previous, Next Month Values using DAX in Power BI and Excel

Sum of Current, Previous, Next Month Values using DAX in Power BI and Excel

 

You have data in below table (Table: 01) from which you want to get price of previous, current, next month for each row in three new columns in Power BI and Excel PowerPivot (Table: 02).

Table: 01

Table: 02

You can do it by using below given DAX formula. This formula will work if you have installed any one of Excel 2016 or above, Microsoft Power Query for Excel (Add-in for Excel 2010, 2013), Office 365 and Power BI Desktop & online

 

Share This Story, Choose Your Platform!

About the Author:

B.Sc. Engineering in Industrial and Production Engineering (IPE) from Shahjalal University of Science and Technology (SUST).

22 Comments

  1. Best SEO Service 02/02/2020 at 5:40 AM - Reply

    Awesome post! Keep up the great work! šŸ™‚

  2. AffiliateLabz 16/02/2020 at 3:03 AM - Reply

    Great content! Super high-quality! Keep it up! šŸ™‚

  3. BrianAntax 25/03/2020 at 12:26 PM - Reply

    Wow, lovely portal. Thnx …

  4. BrianAntax 05/04/2020 at 2:40 AM - Reply

    The info is quite fascinating.

  5. Jamesskida 24/04/2020 at 10:37 PM - Reply

    Great webpage you’ve gotten there.

  6. Madalynn 21/05/2020 at 11:43 AM - Reply

    If you are going for finest contents like me, simply pay a quick
    visit this web page every day for the reason that
    it presents quality contents, thanks

  7. Alena 21/05/2020 at 11:49 AM - Reply

    Nice post. I was checking continuously this blog and I am impressed!

    Very useful info particularly the last part šŸ™‚ I care for such information a lot.
    I was seeking this particular info for a very long time. Thank you and good luck.

  8. Brown 22/05/2020 at 12:42 PM - Reply

    My partner and I stumbled over here from a different page and thought I
    might as well check things out. I like what I see so i am just following you.

    Look forward to looking at your web page yet again.

  9. Samanthas 23/05/2020 at 8:42 PM - Reply

    I’ve been exploring for a bit for any high
    quality articles or blog posts in this kind of area
    . Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this information So i am happy to exhibit that I’ve
    an incredibly just right uncanny feeling I discovered
    exactly what I needed. I most surely will make sure to do
    not forget this site and give it a glance on a relentless basis.

  10. Nathan 24/05/2020 at 12:08 AM - Reply

    I am extremely impressed with your writing skills as well as with the
    layout on your weblog. Is this a paid theme or did you modify it
    yourself? Anyway keep up the nice quality writing, it’s rare to see a nice blog like this one nowadays.

  11. Riley 24/05/2020 at 10:24 AM - Reply

    It’s an awesome post in support of all the web people; they
    will get advantage from it I am sure.

  12. Harrison 28/05/2020 at 10:44 PM - Reply

    My brother suggested I may like this website.
    He used to be totally right. This publish truly made
    my day. You cann’t imagine just how a lot time I had spent for
    this information! Thank you!

  13. Nathan 28/05/2020 at 11:19 PM - Reply

    We are a group of volunteers and starting a new scheme in our community.
    Your site provided us with useful information to work on. You
    have performed an impressive process and our whole group
    might be thankful to you.

  14. Keto 28/05/2020 at 11:27 PM - Reply

    What’s Taking place i am new to this, I stumbled upon this I have found It absolutely helpful and it has aided me out loads.
    I’m hoping to give a contribution & help different customers like its helped me.
    Good job.

  15. Susann Sysak 02/06/2020 at 2:07 PM - Reply

    wow, awesome blog post.Really looking forward to read more. Really Cool.

  16. Brayson 06/06/2020 at 12:08 PM - Reply

    Thanks to my father who shared with me about this webpage,
    this blog is genuinely amazing.

  17. Alyssa 10/06/2020 at 10:34 AM - Reply

    WOW just what I was searching for. Came here by searching for Natalia

  18. Christopher 10/06/2020 at 5:50 PM - Reply

    Informative article, exactly what I needed.

  19. Amira 16/06/2020 at 12:03 PM - Reply

    Iā€™m not that much of a internet reader to be honest but your blogs
    really nice, keep it up! I’ll go ahead and bookmark your site to come
    back later on. All the best

  20. Alice 16/06/2020 at 2:25 PM - Reply

    Nice post. I learn something totally new and challenging on sites I
    stumbleupon everyday. It will always be interesting to read through articles from other writers
    and practice something from their sites.

  21. Rosalee 16/06/2020 at 2:34 PM - Reply

    This is a topic which is near to my heart… Cheers! Exactly where are your contact
    details though?

  22. Stephen 28/08/2021 at 10:34 PM - Reply

    I am regular reader, how are you everybody? This paragraph posted at this site is in fact good.

Leave A Comment

Go to Top