Forum Discussion

peifc75's avatar
peifc75
Frequent Visitor
2 years ago

Rolling Calendar by week

I'm trying to figure out how to make a column that show end of week within calendar I created. This end of week is a rolling week. I need this to do a WoW calculation. I got the measurement correct, but now trying to break the values down by week. And this value will change again by next day.

Example

 

By next day if I run this report, the End of week will be 2/9/2024, 2/2/2024, and etc. 

 

Is there a way to do that? It can be either query editor or DAX.

 

Appreciate any input you can provide. Thank you in advance.

2 Replies

  • peifc75's avatar
    peifc75
    Frequent Visitor

    I tried your method, unless I'm doing it wrong. It isn't exactly what I'm looking for.

    This is the original tables created in Excel. I am trying to convert them over to Power BI. As you can see, the week end date changes daily each time I run it. I wonder if there is a possible way to do the same in Power BI. I don't want hard coded week over week (Sun to Sat). 

     

    Yesterday report...

     Orders Entered - 7 Day Totals    
    EastCompetitiveNP w/o CancelOtherNPTotalTotal w/o NPs Comp VolsPY %Var
    Current Week vs. Prior 498%170%80%104%111%83% 119%92%
    2024-02-117803,3652,70818,2386,8533,488 119%88%
    2024-02-048802,7003,62521,3447,2054,505 116%99%
    2024-01-287661,6243,61313,7076,0034,379 99%100%
    2024-01-216921,7293,04016,9385,4613,732 90%87%
    2024-01-148461,8773,28717,9066,0104,133 95%94%
    2024-01-077851,9953,42318,9106,2034,208 100%96%
    2023-12-316462,4603,03222,5566,1383,678 94%94%
    2023-12-246401,4833,06013,6465,1833,700 101%108%
    2023-12-176541,7703,33016,2345,7543,984 92%99%
    2023-12-107451,8153,43817,0795,9984,183 108%99%


    Today report...

     Orders Entered - 7 Day Totals    
    EastCompetitiveNP w/o CancelOtherNPTotalTotal w/o NPs Comp VolsPY %Var
    Current Week vs. Prior 4100%174%80%101%113%84% 124%95%
    2024-02-127933,4692,70217,7486,9643,495 125%90%
    2024-02-058732,3833,50518,3006,7614,378 114%97%
    2024-01-297672,0293,65117,4626,4474,418 101%100%
    2024-01-226911,9533,16319,1065,8073,854 90%88%
    2024-01-158331,5903,12515,3125,5483,958 96%93%
    2024-01-088962,2823,81821,5046,9964,714 104%103%
    2024-01-016862,4613,19722,5576,3443,883 100%96%
    2023-12-255051,2982,51811,6094,3213,023 86%96%
    2023-12-186451,7253,33016,2745,7003,975 92%99%
    2023-12-117031,8103,39117,1165,9044,094 101%100%