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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
learning_dax
Helper II
Helper II

YTD & Week over Week

Hi all, 

I am trying to show Week over Week % changes & Fiscal YTD running total changes, week over week. However, instead of showing a table I am trying to show it in a Zebra BI card, as shown in the picture below because it consolidates both values into one & returns value/% difference all in one place. 

I am simply taking a COUNT of "Start Date" which is the date a candidate starts working on a task. However, the fiscal year aspect of the calculation and them being measures makes it hard to filter/conceptualize for me as I normally do these types of calculations in a matrix/table. Here are my formulas below that have not worked:

(I believe both below were close to working but they are returning that week's values but for differnt years 2021 AND 2022)
ThisWeekStarts(TW) = CALCULATE([STARTCOUNT],'DATE'[WEEK OF YEAR] = WEEKNUM(TODAY(),1))

LASTWEEKSTARTS(LW) = CALCULATE([STARTCOUNT],'DATE'[WEEK OF YEAR] = WEEKNUM(TODAY(),1) -1)

(I think this solved my issue of fiscal YTD Starts but not sure and still doesn't solve for showing the growth percentage between this week's fiscal running total compared to last weeks)
FISCAL_RUNNINGTOTAL = CALCULATE[STARTCOUNT],DATESYTD('DATE'[DATE],"31/5"))

Any advice/suggestions help as I am trying to learn PowerBI and time intelligence is proving to be the most difficult part in that path. 


Thank youIMG_3543.jpgIMG_3544.jpgIMG_3546.jpg

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @learning_dax 

 

Have you taken @amitchandak advice? We can't find any errors from the information you provide, and it is difficult to give you substantial help.

Please add more details about your problem, I don't even know what's wrong with your results.

How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

Janey

amitchandak
Super User
Super User

@learning_dax , You YTD Week will be like

 


Year Week = [Year]*100 +[Week]
YTD= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) && 'Date'[Week] <= Max('Date'[Week]) ))
LYTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1 && 'Date'[Week] <= Max('Date'[Week])))

 

For FY ending on 31st May

try

FY = if(month([Date]) <=5, year([Date])-1, year([Date]) )


Year Start Date = if(month([Date]) <=5, date(year([Date])-1,6,1), date(year([Date]),6,1) )

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
min week start of year = minx(filter('Date',[FY] =earlier([FY])),[Week Start date])

FY Week = datediff([min week start of year],[Week Start date], week)+1

 

 

Then measures

 

YTD= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[FY]=max('Date'[FY]) && 'Date'[FY Week] <= Max('Date'[FY Week]) ))
LYTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[FY]=max('Date'[FY])-1 && 'Date'[FY Week] <= Max('Date'[FY Week])))

 

 

refer

Power BI for Beginners - Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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