March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Good Evening,
Im looking to create a % increase in Week on Week performance, But the weeks must be a running total of the year to date
See below, I would need in W7 to get a % increase from W6 to W7. Below shows a basic
Many thanks for your help in advance
Solved! Go to Solution.
Hi,
Assuming Week numbers on the X-axis have been dragged from the Calendar table and there is a relationship (Many to One and Single) from the Date column Booking table to the Date column of the Calendar Table, write these measures:
TP = SUM(Booking[Total Price])
TP YTD = calculate([tp],datesytd(calendar[date],"31/12"))
TP YTD till last week = calculate([tp tyd],datesbetween(calendar[date],min(calendar[date])-7,min(calendar[date])-1))
Growth (%) = divide(([TP YTD]-[TP YTD till last week]),[TP YTD till last week])
Hope this helps.
Perfect, thank you. Only thing it doesnt do is exlucde the calc on the first week of the year, so brings in the full year from before, Is there a way to exlclude this?
Hi,
Assuming Week numbers on the X-axis have been dragged from the Calendar table and there is a relationship (Many to One and Single) from the Date column Booking table to the Date column of the Calendar Table, write these measures:
TP = SUM(Booking[Total Price])
TP YTD = calculate([tp],datesytd(calendar[date],"31/12"))
TP YTD till last week = calculate([tp tyd],datesbetween(calendar[date],min(calendar[date])-7,min(calendar[date])-1))
Growth (%) = divide(([TP YTD]-[TP YTD till last week]),[TP YTD till last week])
Hope this helps.
Perfect, thank you. Only thing it doesnt do is exlucde the calc on the first week of the year, so brings in the full year from before, Is there a way to exlclude this?
You are welcome. Does this measure work?
TP YTD till last week = if(Calendar[Week]="W1",blank(),calculate([tp tyd],datesbetween(calendar[date],min(calendar[date])-7,min(calendar[date])-1)))
@Johnce1607 , Try like
TOTALYTD(SUM(Booking[Total Price]),dateadd(CalendarBooked[Date],-7, Day))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |