Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Silky_Johnson
New Member

Weekly YOY Growth With One Day Per Week

I am trying to create a measure that gives year over year change by week, but I can't use same period last year because the day is not the same each year. It is the Saturday of each week. 

 

Date3/20/20043/27/20044/3/20044/10/20044/17/20044/24/20045/1/20045/8/20045/15/20045/22/20045/29/20046/5/20046/12/20046/19/20046/26/20047/3/20047/10/20047/17/20047/24/20047/31/20048/7/20048/14/20048/21/20048/28/20049/4/20049/11/20049/18/20049/25/200410/2/200410/9/200410/16/200410/23/200410/30/200411/6/200411/13/200411/20/200411/27/200412/4/200412/11/200412/18/200412/25/20041/1/20051/8/20051/15/20051/22/20051/29/20052/5/20052/12/20052/19/20052/26/20053/5/20053/12/20053/19/20053/26/20054/2/20054/9/20054/16/20054/23/20054/30/20055/7/20055/14/20055/21/20055/28/20056/4/20056/11/20056/18/20056/25/20057/2/20057/9/20057/16/20057/23/20057/30/20058/6/20058/13/20058/20/20058/27/20059/3/20059/10/20059/17/20059/24/200510/1/200510/8/200510/15/200510/22/200510/29/200511/5/200511/12/200511/19/200511/26/200512/3/200512/10/200512/17/200512/24/200512/31/20051/7/20061/14/20061/21/20061/28/20062/4/20062/11/20062/18/20062/25/20063/4/20063/11/20063/18/20063/25/20064/1/20064/8/20064/15/20064/22/20064/29/20065/6/20065/13/20065/20/20065/27/20066/3/20066/10/20066/17/20066/24/20067/1/20067/8/20067/15/20067/22/20067/29/20068/5/20068/12/20068/19/20068/26/20069/2/20069/9/20069/16/20069/23/20069/30/200610/7/200610/14/200610/21/200610/28/200611/4/200611/11/200611/18/200611/25/200612/2/200612/9/200612/16/200612/23/200612/30/2006
Item A1,703,0001,572,8001,452,2801,561,4001,898,8801,778,3601,978,3802,178,8002,193,6002,196,5802,188,9602,225,4602,532,5802,506,8802,323,0002,821,1802,995,8002,630,8002,907,3802,739,7203,144,0003,511,5223,139,5603,525,5805,602,0205,460,3206,020,5006,393,8207,464,5609,001,5208,577,5209,087,8009,950,35611,387,86011,939,00013,552,72012,575,28015,704,96017,869,05818,692,31418,456,62017,995,44020,346,30021,332,81622,738,20425,510,54830,735,73828,895,64029,622,85430,344,82035,709,54034,667,22036,210,14438,706,79640,915,60845,735,21846,001,50048,241,96051,552,40857,241,12055,345,09858,828,53865,435,99464,472,61466,882,55267,006,88871,866,58090,559,79671,718,70070,528,70075,509,26479,304,08481,943,00679,098,87679,004,14479,575,91687,744,97084,938,37283,268,31483,217,13887,704,86090,739,98083,647,44082,471,75284,660,17888,436,65687,372,15884,871,34081,834,01886,953,46090,154,22075,650,91477,571,42071,657,38874,059,91472,567,06272,954,61870,764,52076,210,26075,253,34071,323,26072,039,81074,908,92073,977,12073,240,04073,412,96875,771,47679,935,34077,092,44077,495,95884,878,03484,943,86080,293,89875,626,77883,025,40083,582,30089,789,85084,804,24087,343,40099,149,98089,692,37888,546,30089,504,00088,597,11692,651,05092,490,06088,255,30089,072,38094,778,21889,511,89087,123,06087,661,80089,798,67891,740,75486,900,79885,802,84285,205,28887,965,10487,172,94087,344,19080,691,38086,629,71689,813,58082,641,40090,812,98078,971,000
Item B169,292,030167,130,654174,560,512176,103,566168,629,934179,937,770178,502,918181,792,196184,753,728180,884,134205,244,396180,754,898180,611,674179,916,800185,480,856196,792,796185,001,672183,768,650189,314,180188,321,484191,390,202181,951,382181,292,830183,581,300197,121,364184,008,888180,314,564180,227,146183,794,238183,025,572173,305,630171,133,404173,556,134175,428,078169,603,920169,707,832159,341,424165,036,782164,011,662162,653,184161,375,978154,912,832165,190,398158,159,640155,690,230156,444,238161,582,356159,292,594156,112,002157,228,534161,409,610156,127,070152,551,672154,364,322156,472,532166,108,282169,617,678167,431,972164,952,132175,564,016162,810,460164,082,408174,034,578164,066,204170,742,696167,895,384181,085,380190,500,336169,957,332163,944,514171,174,052170,960,324170,916,978165,851,044164,669,820162,727,524171,715,002165,126,824159,662,058159,554,578162,966,620165,776,140156,102,778156,542,534151,307,120154,134,760154,660,264152,636,220144,189,920150,400,826153,188,020144,170,196151,240,962138,572,494143,398,928143,393,358141,475,140142,430,402147,351,724146,137,796142,183,020139,158,256145,159,158145,973,434144,114,660145,359,296145,302,618154,207,620149,774,780150,380,140152,910,428157,685,252159,924,864153,346,898166,132,440156,891,358164,622,638160,904,096167,598,560176,426,438160,023,552157,514,614160,386,658160,999,268168,065,092170,039,518164,249,288160,622,138168,147,144156,578,952154,433,944154,639,316157,795,114154,969,674150,953,712150,524,110160,424,102159,667,944156,064,080158,229,998140,752,080145,831,288143,866,498145,677,660167,181,940133,600,882

 

Result would looks like this. This is just a current entry divided by the entry 52 items ago.

Growth3/19/20053/26/20054/2/20054/9/20054/16/20054/23/20054/30/20055/7/20055/14/20055/21/20055/28/20056/4/20056/11/20056/18/20056/25/20057/2/20057/9/20057/16/20057/23/20057/30/20058/6/20058/13/20058/20/20058/27/20059/3/20059/10/20059/17/20059/24/200510/1/200510/8/200510/15/200510/22/200510/29/200511/5/200511/12/200511/19/200511/26/200512/3/200512/10/200512/17/200512/24/200512/31/20051/7/20061/14/20061/21/20061/28/20062/4/20062/11/20062/18/20062/25/20063/4/20063/11/20063/18/20063/25/20064/1/20064/8/20064/15/20064/22/20064/29/20065/6/20065/13/20065/20/20065/27/20066/3/20066/10/20066/17/20066/24/20067/1/20067/8/20067/15/20067/22/20067/29/20068/5/20068/12/20068/19/20068/26/20069/2/20069/9/20069/16/20069/23/20069/30/200610/7/200610/14/200610/21/200610/28/200611/4/200611/11/200611/18/200611/25/200612/2/200612/9/200612/16/200612/23/200612/30/2006
Item A2126%2461%2817%2929%2423%2713%2606%2627%2523%2678%2989%2897%2641%2673%3094%3210%2394%2681%2597%2895%2606%2253%2516%2257%1566%1556%1383%1302%1175%1008%975%907%851%777%732%626%651%554%505%405%420%398%364%340%321%277%248%260%241%237%210%213%202%190%185%175%168%161%165%148%145%129%127%130%134%127%122%109%125%126%119%112%113%117%112%112%108%105%105%105%102%101%104%104%101%99%100%103%99%100%100%109%117%110%
Item B90%92%90%94%101%93%92%97%88%91%85%91%95%93%98%97%92%89%90%91%89%91%91%89%87%90%89%89%89%91%90%91%87%88%91%90%90%91%93%89%94%89%87%91%91%91%91%92%91%89%90%93%94%94%93%93%88%90%93%90%98%93%95%96%96%96%93%93%94%96%94%94%98%103%100%99%98%95%97%97%97%93%97%96%106%104%101%104%98%97%94%101%111%96%

 

Thank you!

2 REPLIES 2
amitchandak
Super User
Super User

Create a 364 days behind measure

364 days behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,day))

and take change % from the current measure. This will work fine as long as you group complete weeks

Hope you had date table and the report you have shown are matrix not measures created

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

 

I actually do have this formula. But It doesn't work because of the 53rd week of the year. If I chart it, it goes like this 

Growth12/30/2006
Item A-100%
Item B-100%

 

Instead of this

Growth12/30/2006
Item A10%
Item B96%

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.