same period last year
15 Topicssame day of week, same week for previous year calculation with date range selected
Hi, I am facing challenge in calculating same date range last year sales calculation. I have to calculate based on weekday and week selected for previous year. Also it has to be at aggregated level. So suppose I have period 1/4/2022 to 1/6/2022 selected, then I have to calculate data for 1/5/2021 to 1/7/2021 as the day of week are Tuesday, Wednesday, Thursday and week is 1. I have sales, month, week, day of week, year, date as the fields available. I want to show total aggregated numbers for last year and current year. Thanks for the support. Garima amitchandak tamerj1Solved8.5KViews0likes6CommentsSame Period Last Year with Filter
I simply want to return results from last year based on the number of months that have passed this year. So this year would be January through October have passed. I want to get last years results January through October, so I'm trying to filter using MAX Calendar Date. This below is not working and is computing the results of this year and not last year. GA LY = CALCULATE([Gross Adds],FILTER('Calendar','Calendar'[CalendarDate]=MAX([Calendar Date],SAMEPERIODLASTYEAR('Calendar'[Calendar Date]))))Solved2.2KViews0likes10CommentsSPLY with Multiple Date Columns
I have Service Date Column and Paid Date Column that might occures 3-6 month after the service date. So for instance I need to filter the dashboard 12 months of service and 15 months of Paid, How can I apply SPLY to the both [svc date] and [paid date] in a calculated measure [INVOICE] in a new measure! VAR _SVC_MAX_DATE = MAX('SERVICE CALENDAR'[Date]) VAR _SVC_MIN_DATE= MIN('SERVICE CALENDAR'[Date]) VAR _PD_MAX_DATE = MAX('PAID CALENDAR'[Date]) VAR _PD_MIN_DATE= MIN('PAID CALENDAR'[Date]) RETURN CALCULATE([INVOICE],SAMEPERIODLASTYEAR('INVOICE'[SVC_DT]),'INVOICE'[CLM_DT]>= _SVC_MIN_DATE && 'INVOCE'[SVC_DT] <= _CLM_MAX_DATE) Thanks!673Views0likes2CommentsCalculate YTD and YTD-1 for the same period
Hello, I would like to calculate the YTD Spend and the YTD -1 Spend for the same period. For example for 2021 we are in October so I would like to calculate the Spend for 2020 only until October. For the moment I have created this formula : Spend YTD-1 = CALCULATE(SUM('Spend consolidé'[Invoice_Accounting_EUR]),SAMEPERIODLASTYEAR('Calendar'[Date])) But it's not working, when I filter on 2021, with this formula I have the spend for the entire year of 2020 instead of having until October. Any advice to help me solve my problem ? Thanks, Axel5.7KViews0likes5CommentsSales last year, same week number, same day
Hello there, I am currently having current year sales and have a measure calculating last year sales. However, it is looking on the same day last year increments but I am more interested in looking in the same week number, same day number (so if it is week 42, Monday, to look last year in week 42, Monday). I have managed to get the correct sales per day by creating a new collumn like this : DayWeekYear = ([UgedagNummer]*100+ [UgeNr])*10000+[År] and then a measure like this : Oms. kr. SÅ try = CALCULATE(SUM(F_Butikssalg[Oms]),FILTER(ALL(D_Periode),D_Periode[DayWeekYear] = MAX(D_Periode[DayWeekYear])-1)) BUT, this works only on a day level visual. If I want it displayed as a cummul of all values in a week or years and filter a longer period, it will not take all sales per specified period but rather print a value for one day. Oms is current sales. Oms. kr. SÅ is the current measure matching the same day last year (ex. 16 Oct with 16 Oct) and Oms. kr. SÅ try is last year sales taking into account week and day number( day number is : Monday=1; Tuesday=2.....Sunday=7) I want when selecting sales last year to have them dispayed looking on the same week number and day number on all levels of visualization and filtering: day/week/month/year. I have tried making the same column only with year&week but then I cannot get sales last year per day and if I create one visual and select multiple week, if i have weeks display I get correct amounts but not total and if i want only a total for filtered weeks i get again a wrong number. Majority of connection in the datamodel for date are made through D_Periode using Dato which is format as dd/mm/yyyy Thank you in advance.1.2KViews0likes2CommentsSlicer to show Current Week by default
HI everyone. I want to show Current week as default when user open the report or changes the report page. I want this slicer to show by default whenever user opens the report or changes the report page. when user come backs to the page it should show the sales by current week. PFB the dax im using currently to show the current week between the weeks, //Current Week Slicer IF(DMVBICalendarView1[SemCourante]= "courrante", "Courante", IF(DMVBICalendarView1[SemCourante]= "courrante-1", "Courante", IF(DMVBICalendarView1[SemCourante]= "courrante-2", "Courante", IF(DMVBICalendarView1[SemCourante]= "courrante-3", "Courante", //Merging DMVBICalendarView1[Semaine Fiscale] &"-"& DMVBICalendarView1[Semaine 2022])))) Need your help. Thanks in advance.Solved4.8KViews0likes2CommentsPercentage of average price diff same period last year but for matching items/products only.
Hi, Actully I'm craeting a KPI . Calculate Average price diffrence (Period to Same Period before/last year) : Taking average of products in the date range and same range last year but matching proucts only. Basically a Inner join of product (selected period products inner join with same period last year products) For ex: From below image if user has selected date rage of 01-Feb-2021 to 05-Jun-2021, then prod(A,B,C,D)Average will be 66.75, but for same period in last year product D is not present then we want to exclude tht product from avg cal. so, new avg will be prod(A,B,C) 61.66 and same period last year prod(A,B,C) avg is 45. and diffrence will 61.66-45. Name Department Value Product Year Date(DD-MM-YYYY) Alex Tech 99 A 2021 01-02-2021 Scott Disp 47 B 2021 10-02-2021 Ray Tech 39 A 2021 10-02-2021 Joy Disp 82 D 2021 04-06-2021 Alex Tech 27 A 2020 01-02-2020 Alex Tech 53 B 2020 10-02-2020 Alex Tech 55 B 2020 15-02-2020 Hlp me resolving this issues. Thanks in advance .Solved806Views0likes2CommentsLast year calculations
Hi guys, I am stucking on last year same period calculations. like we are in 2021 so this year calculation period will be- 1st jan21 to 3rd oct 2021 and Last year same period will be 1st Jan20-3rd Oct2020- how can I get this result I have tried- calculate(sum(sales),sameperiodlastyear(date[date])- showing incorrect result. Please help me on this. Tanushree_Kapse amitchandakSolved2.3KViews0likes9CommentsSameperiod Lastyear Issue
Hi everyone I have some issue about function sameperiodlastyear, I want to compare data between present year and last year value by using sameperiodlastyear, for whole data is ok, but when i filter select some product, i found my date data is not continue because "The relationship between date table and data table is both relationship " then the function is not calculated, so i try to solve with crossfilter function to "active single relationship" but it won't work. Could anyone can suggest solution for this issue?492Views0likes1CommentSAMEPERIODLASTYEAR not matching
I have a matrix visual with that has the most recent three years as columns and within rows I have location type, location and fiscal month. I'm running into a problem with calculations using SAMEPERIODLASTYEAR not equaling the previous value. Does anyone have suggestions on how best to correct this? Thanks!555Views0likes1Comment