Power BI: How to Always Show Current Week vs. Prior Week 📅 Automatically!

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

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

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

    I used this for work today, thank you so much!

  • @manojkahar5718
    @manojkahar5718 2 года назад +2

    Looking for same concept, thank you Avi making my life easy

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

    Thank you Avi. This is very helpful. The Calculate function is not working for me. No drop downs

  • @MistaChamo
    @MistaChamo 10 месяцев назад

    This is great. What about something where if you select a given date, it compares the totals for that day to the average of the prior X number of that same day of the week? For instance, if I select X date, and that is a Monday, it will compare the Monday I selected to the average Y Mondays prior to the one I selected.

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

    Avi, how did you set up the underlying table and header for curr vs pre week's to show weekdays and the header.

  • @joan322
    @joan322 2 года назад +5

    I think you are missing showing some steps within this video. Such as how to make the formulas dropdown. Because I cannot seem to get it to work with the workweek

  • @stephg-xw2gj
    @stephg-xw2gj Год назад

    Great video, really useful, what would have been challenging, add % per day current and prior week

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

    How to take the sales change wow on only one particular day of the week once a week sales calculated and week over week change....any way to select particular date on dataset and show the change...please help

  • @andrea31050
    @andrea31050 7 месяцев назад +1

    Hi,
    your video have been very helpful for me.
    I'm looking to so something similar to what you did in this video, but with the option of selecting the week via slicer.
    As, if i select week 23, i would like the table to show the data for week 23 and 22. if i select week 10, the table should show data for weeks 10 and 9, and so on.
    However i have been struggling to achieve the result i need...

    • @PowerBIPro
      @PowerBIPro  7 месяцев назад

      Hey Andrea, send me a message on LinkedIn and I would help you the best I can. www.linkedin.com/in/PowerBIPro
      Power On! / Avi

  • @yufanli6
    @yufanli6 5 месяцев назад

    Hi, Thank you for the videos, hou did you add the legend on top showing the current week Sun - Sat? is it a matrix table?

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

    Exactly what Im looking for bit power BI is beyond me. Can this be done in excel pivot table?….. a this week to last week side by side then a variance?

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

    Does that work with summarized data? If I wanted to slice by vendor or market sales deltas?

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

    Avi, Thanks for your videos, they have been very helpful on my power bi journey.
    My question is why does the ultimate calendar table have 53 weeks of year instead of 52?

  • @thulasi1122
    @thulasi1122 Месяц назад

    Hi avi, i am trying to create a dynamic measure like based on th selected date data should display in matrix level but if the week selection is in between its not displaying any data.can you please help me on the dax.i have year week,month, value columns in table A,slicer month column coming from table B

  • @idakwiatkowska2862
    @idakwiatkowska2862 11 дней назад

    How to set up this offset? I have normal calendar table and there i have week number.

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

    Must awaited as I have done earlier

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

    Hi Avi, Thanks for your helpful video. My question is: I need to show data by reporting months which start from 24th of their last month to 23th of these months (e.g: The duration of December,2022 in my report will span from 24th November,2022 to 23th December, 2022) and by my reporting weeks which start from the last Thursday to its current Wednesday. How does my report always show current REPORTING WEEK/MONTH vs. prior REPORTING WEEK/ MONTH? And is there any way to calculate the portion of top 10 product code by sales automatically? (because my product code lists include many codes so create each measure to calculate each of their portion is not the best choice). Looking forward to hearing from you!

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

    I got the calender table from you but how do I change the start of the week? I want my week to start on Monday and end on Sunday.

  • @FELIPPEVIANNA
    @FELIPPEVIANNA 8 месяцев назад

    I have a situation. My "current week" is actually the last week of deliveries. So, my question is, how can I set up my current week to always be the last week of deliveries (fact table)? I would appreciate your help.

    • @PowerBIPro
      @PowerBIPro  8 месяцев назад

      Hey @FELIPPEVIANNA,
      That is a great scenario. And I think I can help you with that. Can you send me a message on LinkedIn www.linkedin.com/in/PowerBIPro
      We may need some back and forth to solve this for you. And I check LinkedIn a lot more than I check RUclips comments here.
      Power On! / Avi

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

    Hi I want to create a rolling week number x axis with the current week in the center , in the left the 26 weeks before and in the right the 26 weeks after. Can you help me ?

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

      Hey Yamina,
      Would love to help. Please check out
      www.learnpowerbi.com/article/how-to-ask-good-power-bi-questions-and-get-them-answered
      And email me your question at avi@avising.com
      You can also join my Live Power BI Q&A Call.
      See www.LearnPowerBI.com/question
      Power On! / Avi

  • @devyaniwalecha8019
    @devyaniwalecha8019 2 года назад +1

    Hi Avi,
    Could you please help with how to create current week offset flags in a report?

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

    Dear Avi,
    Is CurWeekOffSet a calculated column? I think, it is a dynamic value based on current date, isn't it?
    How is the formula?

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

      If you download his calender table, you'll see it in the queries when you click transform data how he made it. If you're lazy like me, here it is but doesn't make sense unless you see the other queries tbh:
      = Table.AddColumn(#"----WeekSequenceNum Complete----", "CurWeekOffset", each [WeekSequenceNum] - Current_WeekSequenceNum, Int64.Type)

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

      @@Harpreet06 ah thank you...

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

    hi, I am trying to calculate a YTD value by selecting in the slicer the week number. so if I select the week 10, then the returned values should be "value week 1 + value week 2... + value week 10". I can only do it by using TOTALYTD and selecting the week date instead of the week number. do you have another solution for it? thanks!

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

    Values aren't reflecting in sales current week and sales prior week measures in my .pbix file. Kindly help me understand why is this issue occuring

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

    I’m having trouble changing the week start day. What if I want the weeks to be Mon - Sun?

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

    Hi Abi, pls. how do you tackle ISOWEEKNUM? This exists in excel but PBi only has WEEKNUM function.

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

      In Power BI, you can calculate the ISO week number by using the following formula: ISOWeekNum = WEEKNUM([Date], 21)

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

      @@PowerBIPro Thank you for replying Avi. I’m getting this error “Expression.Error: The name ‘WEEKNUM’ wasn’t recognized. Make sure it’s spelled correctly”

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

      Works now thanks. Instead of typing the formula in the Data view, I was doing that in the Edit query.

  • @sho0orey
    @sho0orey 6 месяцев назад

    How you calclaut the sales?

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

    Hey - I have a unrelated question - I have been trying for a number of weeks to incorporate a chiclet sliver to my report. I wanted to create a slicer with headshots of my team members (just thought it would be cooler then a boring slicer) but for some reason I cannot get all 4 images to work. I have saved the image links to our company sharepoint and into our team so the links should be accessible and also categorized the links to "image url". But still no luck. Any help would be amazing!!!!! Thank you

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

    I am not getting any value after calculating the current week sales its showing 00. How to solve this one.

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

    Awesome stuff

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

    How can always calculate my weeks from yesterday, not including todays data

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

    how can i change the first day of the week as Monday??

    • @PowerBIPro
      @PowerBIPro  Год назад +2

      To change the first day of the week to Monday in Power BI, you can follow these steps:
      Click on "File" in the top left corner of the Power BI Desktop window.
      Select "Options and settings" from the dropdown menu.
      Click on "Options".
      In the "Options" dialog box, select "Regional settings" from the left-hand menu.
      In the "Regional settings" section, look for the "Week starts on" option and select "Monday" from the dropdown menu.
      Click on "OK" to save the changes.
      Once you have made this change, all your date and time functions, including WEEKNUM and other functions that rely on the week starting on a specific day, will use Monday as the first day of the week.

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

      @@PowerBIPro TY SO MUCH

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

    Wait, am I the only one seeing that “sales in prior week” is not actually in the “sales in current week” column as it should be? None of the digits in both column are not the same.