Calculate week on week sales in Power BI - Weekly Time Intelligence in Power BI

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии •

  • @ExcelBonanza
    @ExcelBonanza  Год назад

    GET 15% OFF my Excel PowerPivot for beginners Course. Use discount code RUclips15 at checkout (Limited time offer!)
    tinyurl.com/4ayp2457
    Visit my website: www.ExcelBonanza.com

  • @Game_Impala
    @Game_Impala 3 года назад

    This video is way underrated. This provided exactly what I needed!

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Thanks, Brandon! Please make sure to like the video and share it with your friends so that we can reach more people :)

  • @manishchavda1062
    @manishchavda1062 Год назад

    Finally I got my solution here. Thank you so much for the video. It really helped me

    • @ExcelBonanza
      @ExcelBonanza  Год назад

      Thanks for your comment, Manish! I'm glad that you found the video useful!

  • @MarDuke2004
    @MarDuke2004 3 года назад

    Thank you for video, so easy and so informative. I came here specifically from the embedded video to Like it and Comment. We need to show our appreciation to people that share their knowledge to make life easier for the rest of us. I wholeheartedly Thank you!!!

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Thanks, Sandhu!
      I'm really happy that you found the video helpful. And I'm so happy to read your Comment :)

  • @thebigdmkilla
    @thebigdmkilla 4 года назад +1

    Thank you. This helped me not bang my head against the keyboard anymore. So simple when you really look at it.

    • @ExcelBonanza
      @ExcelBonanza  4 года назад

      Thanks Alan! Great to know that the video has helped you!

  • @rubenpolita6709
    @rubenpolita6709 3 года назад

    Thank very much for your video, it was very easy to get the week of month!

  • @josephblaney4730
    @josephblaney4730 3 года назад

    This was so helpful. Thank you so much!

  • @karikoga320
    @karikoga320 4 года назад +1

    Thank you very much for this excellent exposition. Can we adjust the measures to take the maximum year in the calendar table if no year is selected instead of showing "Please Select a Year"?

  • @julianchan1935
    @julianchan1935 3 года назад

    Hey mate, thanks so much for this. However I was not able to have any data populate and its blank. Wonder why this is the case?

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Hi Julian. Can you please elaborate more? I don't understand your question

  • @derekzornizer5663
    @derekzornizer5663 4 года назад +1

    Hello! Great video! Thank you so much. Question for you - When showing the sales for previous week, it seems to only work when using 'week of year' and not the actual dates. Can you please provide a solve so I can show dates as opposed to week numbers?

    • @ExcelBonanza
      @ExcelBonanza  4 года назад

      You can add the week start date column to your calendar and then put it in the rows section.

    • @Game_Impala
      @Game_Impala 3 года назад

      I am having the same issue. My Day of Week values are not making sense in the visual. I have 2021 selected in my slicer and have Week number, Day of week in the rows. I also noticed in the PBIX you have a VAR for Last Week in the Sales Same Day Last Week Measure that is not in the video. I'm stuck at this point and not sure what to do next.

  • @thejazzman123
    @thejazzman123 2 года назад

    Thanks for this. Spent a week trying to get something like this to work and finally managed it! What woud I have to do to add YTD running total for last year based off the same kind of calculation as same week last year?

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      Sorry. I don't understand your question. can you please explain more?

  • @arpitsawant1306
    @arpitsawant1306 3 года назад +2

    Hi can you please assist me in getting measure for wow variance

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      It's simply (New week - Old week) / old week

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      You can also use (New week / Old week) - 1

    • @arpitsawant1306
      @arpitsawant1306 3 года назад

      @@ExcelBonanza thank you..can you help me out in calculating both metrics ( DAX Measure ) i.e new week & Old Week as I have tried many refering Google links but wasn't successful

    • @ExcelBonanza
      @ExcelBonanza  3 года назад +1

      Hi Arpit. You can take my Powerpivot and DAX course. I explain that in detail on the course

  • @priyajuneja178
    @priyajuneja178 2 года назад

    Hi there, very informative lesson, how can I get the dataset , I did download the powerBI but still looking for dataset (CSV files )

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      Hi Priya. Thanks for your comments. you will find the files on this link: bit.ly/3MbPi5k (20200417 Week Over Week Calculations in DAX)
      I have also updated the link in the video description

  • @rogervandecraen9797
    @rogervandecraen9797 2 года назад

    great excellent video well explained and it will be hopefully solving my problem, I want to see the last 8 or X weeks for a particular measure . do I use the topN () or can I put it in a measure? Thanks in advance

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      Hi Roger. Thanks for your question. you would need to calculate the measure during the whole x weeks. you would need to use the CALCULATE() function with DATESBETWEEN() function

  • @MohamedGamal-pj6wd
    @MohamedGamal-pj6wd Год назад

    Hi Excelawy
    I am asking about how to calculate the sales amount when i choose specific date from the start of the week of that chosen date

    • @ExcelBonanza
      @ExcelBonanza  Год назад

      You can do that if you have a "Week Start Date" column in the Calendar table

  • @tracybattiste5129
    @tracybattiste5129 3 года назад

    This is a wonderful Video!
    I just have one question and really need your help with...
    How do you get the Dax measures e.g."SalesSameWeekLastYear" to show subtotals on a visual? Even in the video, the table totals for the Dax measures are blank.

    • @abdelrahmanabdou8905
      @abdelrahmanabdou8905 3 года назад

      Hi Tracy. You would need to test for the filter context having more than one week start date value. You can use the HASONEVALUE function for that. I explain that and many other calculations on my Powerpivot & DAX course of you are interested . You should find its link below the video.

  • @poojawadhwa3456
    @poojawadhwa3456 3 года назад

    Thanks so much for your amazing explanation! Could you tell me how to incorporate a product column into this calculation though? For instance, if I wanted to calculate the week on week growth of sales on a product level, the formula breaks down a little bit

    • @ExcelBonanza
      @ExcelBonanza  Год назад

      You would need a filter for Product on CALCULATE

  • @dancevirginia4179
    @dancevirginia4179 3 года назад

    This video is a Godsend!

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Thank you! I'm glad that you liked it!

  • @chakrabmonoj
    @chakrabmonoj 2 года назад

    This is an excellent lesson and solves a lot of problem for me as far as week time intelligence goes. I have a question though :
    I have a date table created in Power BI, using the calendar function. However I am not able to port it to PQ as you are doing nor do I see the "Edit Query" tab on my ribbon. Am I missing something here?

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      Hi. I think it's because you created the calendar table using DAX. In this case you can't port it to power query. In order to have it in power query, you need to build the calendar table in power query

  • @achintkaur401
    @achintkaur401 2 года назад

    Hi nice video my issue is that I am able to calculate week on week performance at overall year level but u want it for each product on the matrix table...example I have sales data set with mobiles sales so various mobiles like iPhone 13 Pro max and Samsung s22 5g , I want to calculate week on week sales for each model on matrix but when I do that I get week on week sales for full year I need by product...can you help me ?

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      You would need to put the product on the columns section of the matrix

  • @tristanlee5612
    @tristanlee5612 3 года назад

    Thank you sir, I have one question about the same week last year, the problem I have is there is 0 value for the Week 53 for 2020 leap year. can I please know how it can be Dax'ed to have it compared to Wk01 last year? thank you so much

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      I have a solution. I will need to post another video for it. Stay tuned

  • @laljipatel83
    @laljipatel83 3 года назад

    Thank you sir. its really informative season. just one question how do we get total of previous week

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Need to explain that in another video. You will need to iterate over all the results using SUMX()

  • @charlesadkins23
    @charlesadkins23 3 года назад

    Any insight on how to just do weekly time intelligence that allows the user to see changes week to week across all weeks, months and years? I currently have the functionality for week to week across months, BUT when I go to the beginning of any given year (ie. January, Year), I'm not sure how to code the logic for look back into the last week of the last month of the previous year (ie. December, Year). All Help appreciated

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Hi Charles. Please check this video
      ruclips.net/video/JsVpNMqZor4/видео.html
      I explain the logic on this video and it's part of Powerpivot & DAX Course

  • @marounsader318
    @marounsader318 3 года назад +1

    hi, how can i make the same measure but to show customer sales previous week and previous 2 weeks, meaning the rows will be the customer name rather than the date or the week?

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      You need to capture the weeks as per the video and create a CALCULATE formula to calculate for these weeks and it should calculate it for the that particular customer as long as you don't change the customer filter context in CALCULATE

    • @marounsader318
      @marounsader318 3 года назад +1

      @@ExcelBonanza you mean like this CALCULATE ([the measure created in the video],values (customer))?
      Then put the customers on the row and the new measure in the vlaues

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      No, it's CALCULATE ([Measure], ALL(Calendar), Week = previous week)

    • @marounsader318
      @marounsader318 3 года назад +1

      @@ExcelBonanza i tried this and it works only if the weeks are in rows, if customers are on rows it gives blank

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      Do you have the customers table connected to your fact table? Is there a relationship? Does the customers table filter your sales/ fact table?

  • @sirknightzjr2
    @sirknightzjr2 3 года назад

    Hi. Really love the video. Its really informative. For me, I want to count the no. of order and compare Week on Week, I tried to use COUNTROWS in the formula to replace calculate([Sales amount] but I get an error. Can you show me what I need to change in the formula to count rows instead of calculate sales amount? Appreciate your advice on this.

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      You need to create a measure by calculating the number of rows and then replace Sales amount with that measure

  • @KA-ep9ik
    @KA-ep9ik Год назад

    hi, thanks for this. How we can do this in excel?

    • @ExcelBonanza
      @ExcelBonanza  Год назад

      You will need to import the data to the data model and use Powerpivot

  • @dylanbederman2691
    @dylanbederman2691 4 года назад

    Great video, but specifically for the first measure (comparison to previous week), is there a way to write the DAX so that it will work with just the "Week Start" in a table (or on an axis).
    For example, how would you adjust this visual so that you could put Week Start, Total Sales, and Total Sales LW in one table?

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      You can calculate the sales LW as a measure

  • @plumpycharm1573
    @plumpycharm1573 2 года назад

    Hi Avi.. I have only week.year as textcolumn and value coming from fact table..I need to calculations like complete previous year.. I don't have date column.
    If 15. 2022 to 19.2022 is selected as cycle, then last year sales should be from sum of value 1.2021 to 52.2021.
    How can I achieve that pls..pls help me.....I got stuck............

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      You would need to have a calendar table with a date column. it's essential for time intelligence calculations.

  • @keenanstovall9469
    @keenanstovall9469 4 года назад

    this was very helpful, I'm still learning this... Can you tell me the measure for the sales amount as well?

    • @ExcelBonanza
      @ExcelBonanza  4 года назад +1

      It's order quantity * unit price

  • @ChromeBookmarks
    @ChromeBookmarks Год назад +1

    One of the issue I found with this. e.g. if the start date of week is between 26th Dec 2022 - 1st Jan 2023, the week number could be both Week 53 of 2022 and Week 1 of 2023, then measure result goes wrong.

    • @ExcelBonanza
      @ExcelBonanza  Год назад

      You can change the formula in power query so that you would have week 53 and then week 2 of the new year, and you would skip week 1

  • @sachinbhutada5839
    @sachinbhutada5839 2 года назад

    How to calculate working days for alternate week off?

  • @Pro_Data_Solution
    @Pro_Data_Solution 3 года назад

    This is brilliant boss :)
    can you please confirm why totals are not coming?

    • @ExcelBonanza
      @ExcelBonanza  2 года назад

      It's because we haven't put a condition to handle them in the DAX formula. I explain that on my Powerpivot and DAX course.

  • @Real_King7even
    @Real_King7even 4 года назад

    How can I make a custom week range, for example. i want my week classification to start every Friday to Thursday rather than the Sunday to Saturday that Power BI has. Any idea please.

    • @Real_King7even
      @Real_King7even 4 года назад

      so, when i make my week numbers, its based on these week range and not the typical weeks

    • @ExcelBonanza
      @ExcelBonanza  4 года назад +1

      When you create the week number column in Power Query, you can change the starting day of the week.
      You use the Date. WeekOfYear function and you can set the starting day of the week.

    • @Real_King7even
      @Real_King7even 4 года назад

      I am working with DATEAUTO

    • @ExcelBonanza
      @ExcelBonanza  4 года назад +1

      There's a video on my channel for the introduction to Powerpivot where I show how to build a Calendar table using M. I would recommend you watch it and build your calendar table this way

  • @lucyagyimeh8917
    @lucyagyimeh8917 4 года назад

    Thank you very insightful. What of a week to date measure

    • @ExcelBonanza
      @ExcelBonanza  4 года назад

      Yeah, Week to date can be easily done. Just capture the week start date in A variable and capture today in a variable too then
      Result = Calculate ([Sales Amount,
      All(tblCalendar),
      DATESBETWEEN(tblCalendar[date],
      Week Start Date (that you captured in a variable), Today() )
      But this is gonna change depending on today, so be mindful of that.

    • @lucyagyimeh8917
      @lucyagyimeh8917 4 года назад

      Excel Bonanza modifying my date table. Will revert with feedback

    • @ExcelBonanza
      @ExcelBonanza  4 года назад

      Sure. No problem

    • @lucyagyimeh8917
      @lucyagyimeh8917 4 года назад

      @@ExcelBonanza I am not getting this

    • @ExcelBonanza
      @ExcelBonanza  4 года назад

      What are you not getting?

  • @MAbdullah47
    @MAbdullah47 3 года назад

    Can we download the (pbix) file please?

  • @WalIbru
    @WalIbru 3 года назад

    Thank you 🙏🏾.

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      My pleasure!

    • @WalIbru
      @WalIbru 3 года назад

      @@ExcelBonanza Hi...The LastMonthPY and LastWeekPY are not working for me. For example, in Jan 2021, the result i'm getting as prev month is Jan 2020 value. But I should be getting Dec 2020 value. Same with prev week, getting 2020 week 1 value as in 2021 week 1, instead of 2020 week 53 value. Pls. help.

  • @samruddhiborkar3333
    @samruddhiborkar3333 2 года назад

    How to compare Order Change with respect to same day last week in excel

  • @stugryffin3619
    @stugryffin3619 4 года назад

    Starts at 2:58

  • @kingleonard9615
    @kingleonard9615 3 года назад

    Can you share sample PBIX files

    • @ExcelBonanza
      @ExcelBonanza  3 года назад

      here's the link : bit.ly/3qnpOrL

  • @cmaman1
    @cmaman1 4 года назад

    thanks